Jump to content

sle7en7

Member
  • Content Count

    173
  • Joined

  • Last visited

Everything posted by sle7en7

  1. Well, will you look at that, no the problem seems to cease when I'm working on a new file. The other file I was working on was batch converted from 2014.
  2. Hi all, I don't know if anybody noticed this before with VW_2015 but the revision cloud tool seems to disappear if you try to change its' color, its' shape by pulling on of the handle points or anything really. The only way to create one seems to just create a new one, you can't edit a copy of a revision cloud. Anybody running into the same problem? I couldn't find a related thread, but if there is, I would appreciate if you can point me in that direction.
  3. We as a company switched to 2015 recently as well. Couple of people are complaining about this a well, rarely including me, I'll make sure to send in a report next time it does this. We usually use it locally but with C/G license type, so we borrow from server. ***EDIT*** Although I don't think it has to do with SPs. I'm on SP2 and a colleague of mine is on SP1, hers actually crash more, probably due to computer capabilities such as RAM and what not but the program overall feels leaner.
  4. Yep, that is right Hippo. Though what would happen if the handle is invalid or >NIL< Would the script freeze the program or cause a loop or something?
  5. YES! That script works to change the ChildSymbol's fields. The only thing I have to take care of is if I can make 2 ParentSymbols' have different values for a field and the ChildSymbol's will reflect those accordingly. Right now, when you run the code on a ParentSymbol and change the ChildSymbol's record field, then it alters the other ParentSymbols' ChildSymbol record value as well. It's tricky, and you do expect that to happen. I mean, you don't need to run the code at all, if you change any ChildSymbol's record field it is also changed in other ParentSymbol's as well. It doesn't act unique to its' ParentSymbol. Which is again, expected. Anyhow, at least we have this script at our hands for future use, I'm calling it a HURRAH! for us (mostly you PAT) and going back to manual labor.
  6. Nice and true saying I would rather demolish a building than doing a retrofit but the world doesn't work like that I guess. Thanks so much again Pat, I don't know how I can express my appreciation but hope you understand. I have stuff to take care of, so it will be a while until I fiddle with this. I'll get back to you.
  7. Ok Pat, I basically turned it into this but the one issue I'm having is the >In< special keyword which I get "reserved for future use" error. I mean, If I can rephrase the part which eliminates objects that do not contain 'MyRecord' then we can get some results. Do you think you can help me with this? Also, we assign the H1 handle but never use it, is that for just in case we need it? Really appreciate the help, thanks a lot. {THIS CODE DOES NOT WORK. DO NOT USE IT.} Procedure Test; Var ParentSymbol:Handle; ChildSymbol:Handle; SymDefHandle:Handle; H1:Handle; SymName:String; Begin ParentSymbol:=FSActLayer; SymDefHandle:=(GetObject(GetSymName(ParentSymbol))); ChildSymbol:=FInSymDef(SymDefHandle); While (GetTypeN(ChildSymbol) <> 15) And (NOT(ChildSymbol In ['MyRecord'])) Do {eliminates objects which are not symbols and do not have 'MyRecord' attached} Begin ChildSymbol := NextObj(ChildSymbol); End; SetRField(ChildSymbol, 'MyRecord', 'MyName', GetRField(ParentSymbol, 'MyRecord', 'MyName')); SetRField(ChildSymbol, 'MyRecord', 'MyNumber', GetRField(ParentSymbol, 'MyRecord', 'MyNumber')); Message(Date(2,2),' ', GetTypeN(ChildSymbol), ' ', GetSymName(ChildSymbol)); End; Run(Test);
  8. Thanks a lot Pat, I will give this a try and let you know how it goes. Thanks so much again.
  9. I am interested of course but the issue which I came to realization is (a bit late I must admit) the fact that I can't set 2 same ParentSymbols different Record fields and expect them to show up inside the ChildSymbol... But nevertheless it would be a useful script in future, so I'm in. The other issue we have is, I do have other symbols in the ParentSymbol but they don't have the record in debate attached to it. But you are saying something along the lines of... PROCEDURE Impose_Record_Field; VAR; ChildSymbol: HANDLE; ParentSymbol: HANDLE; ParentSymbolName: STRING; MyRField: STRING; BEGIN; SelectObj((INSYMBOL & INVIEWPORT & (L='DesignLayer') & (R IN ['WINDOW INFORMATION']))); ParentSymbol:=FSActLayer; ChildSymbol:=IF FInSymbol((ActSymbolDef(GetSDName(ParentSymbol))): R IN ['WINDOW INFORMATION'] ELSE: END; MyRField:=GetRField(ParentSymbol,'WINDOW INFORMATION','WINDOW TYPE'); SetRField(ChildSymbol,'WINDOW INFORMATION','WINDOW TYPE',MyRField); END; RUN(Impose_Record_Field); I'm guessing. Although that was far as I could get which I'm sure there is something wrong again, didn't give it a go yet. I just realized you guys had this developer.vectorworks site you guys had where I was just wasting time in vectorlabs, the former seems way more helpful for scripting. Anyhow Pat, let me know what you think about 2 ParentSymbols having different Record values and trying to reflect these into the same ChildSymbols. It's a tricky thing, but I would like to accomplish this even if we apply it as the same Record Field value to all the ParentSymbols.
  10. Ok, I just realized this is a bit of a lost cause, better to turn the ChildSymbol into group. I realize that two parentsymbols with 2 different record fields can't have a childsymbol which can accommodate those 2 different record values, because the parentsymbol needs to be the same throughout. Sorry for the confusion and stealing time.
  11. I hear you all. Thanks for all the responses first of all. -Pat, I'll give it a try with that addition and let you know how it goes. Although, I guess that should be when I select the ParentSymbol. I mean in order to get a handle on the ChildSymbol do we need to go into every ParentSymbol (meaning; go into symbol edit mode for ParentSymbol and change the record field for the ChildSymbol and get out and do the next one) ? Is this the way to go about OR I'm fine by selecting one ParentSymbol and running the script... So maybe this will work... which gets a handle on the child symbol by sharing the same record with the parent... or tries to... PROCEDURE Impose_Record_Field; VAR; ChildSymbol: HANDLE; ParentSymbol: HANDLE; ParentSymbolName: STRING; MyRField: STRING; BEGIN; SelectObj((INSYMBOL & INVIEWPORT & (L='DesignLayer') & (R IN ['WINDOW INFORMATION']))); ParentSymbol:=FSActLayer; ChildSymbol:=GetObject(IF(S IN [ParentSymbol] (R IN ['WINDOW INFORMATION']); MyRField:=GetRField(ParentSymbol,'WINDOW INFORMATION','WINDOW TYPE'); SetRField(ChildSymbol,'WINDOW INFORMATION','WINDOW TYPE',MyRField); END; RUN(Impose_Record_Field); Don't think this will work but, I guess you guys got the idea what I'm trying to do, also I'm starting understand it is much more of a needy process than I thought it would be so I think splitting the 2 symbols and grouping them seems to be the option for me to follow. -Hippo I left a response over at the post thread Thanks a lot for the help though.
  12. I think this is exactly what I need. I need a script to impose the "parentsymbol"s fields down to the "childsymbol" basically. Just need it to do it on its' own, with a looping script per say. Now, I read your solutions as well, and yes I would do option 1 as well if I knew how and was able to understand it. So you are saying there is an object (maybe you mean a group?) which has control points that dictate the place to insert a symbol? If so, I would love to learn how to do this object... Thanks for the input though.
  13. I came up with this script which compiles fine but doesn't do what I want it to do... which is changing the record field string of the "ChildSymbol" to the "ParentSymbol". I know I'm doing something wrong... PROCEDURE Impose_Record_Field; VAR ChildSymbol: HANDLE; ParentSymbol: HANDLE; ParentSymbolName: STRING; MyRField: STRING; BEGIN MyRField:=GetRField(ParentSymbol,'WINDOW INFORMATION','WINDOW TYPE'); SetRField(ChildSymbol,'WINDOW INFORMATION','WINDOW TYPE',MyRField); END; RUN(Impose_Record_Field);
  14. I think CCroft you are on point. This is also a struggle of mine ... see my post I think it would be a useful thing to have, being able to micro manage a symbol through embedded symbols. If somebody can some up with a script for this, it would be great, sadly it's above my head as well for the moment.
  15. Thanks for the quick response, I think it would be a useful script to have at the least. If we can get it to loop at certain trigger points I think we can have almost like a parametric object which are controlled by sub-symbols. I know you are going to say why I don't use a PIO, because our office doesn't like them :crazy: so we are still CADing basically but I want my drawings to carry some information and be open to change. But when you say I should consider making an object, you mean turning the window tag symbol into a object right?
  16. Hello All, I'm trying to do something simple in my point of view but my inability to code gets in the way and I couldn't find anything out there that was similar to this (after a 5-10 min search smirk ). What I'm trying to do is, use embedded symbols and link one's record field to the other and get it to show that value. More simply... I have a window symbol. I also have a window number tag symbol. I have a window information record as well, which has the window type field. The window information record is attached to the window symbol and the window number tag symbol. The number tag symbol is inside the window symbol. I would like the window number tag symbol to show the window type field of the window information tag which is attached to the window symbol. Is there a script out there to do this? Or another way you think that can accomplish the same thing? I'm thinking somewhere between the lines of: PROCEDURE Record Field 2 Record Field; VAR mothersymbol: string CONST MyRec="window information" My Field="window type" BEGIN SET (R.windownumbertag.windowtype IN S.window number tag) TO (R.windownumbertag.windowtype IN S.window symbol) END RUN Record Field 2 Record Field Something like that... :crazy: Thank you very much for your help and time.
  17. Hello All, I'm trying to do something simple in my point of view but my inability to code gets in the way and I couldn't find anything out there that was similar to this (after a 5-10 min search ). What I'm trying to do is, use embedded symbols and link one's record field to the other and get it to show that value. More simply... I have a window symbol. I also have a window number tag symbol. I have a window information record as well, which has the window type field. The window information record is attached to the window symbol and the window number tag symbol. The number tag symbol is inside the window symbol. I would like the window number tag symbol to show the window type field of the window information tag which is attached to the window symbol. Is there a script out there to do this? Or another way you think that can accomplish the same thing? I'm thinking somewhere between the lines of: PROCEDURE Record Field 2 Record Field; BEGIN SET (R.windownumbertag.windowtype IN S.window symbol) TO (R.windownumbertag.windowtype IN S.window number tag) END Something like that... Thank you very much for your help and time.
  18. Great coding advice, i will try to remember it, Thanks Mike.
  19. what am I doing wrong here? =IF((C='ELEVATION-GLASS-30dB'), '30dB', IF((C='ELEVATION-GLASS-35dB'), '35dB', IF((C='ELEVATION-GLASS-37dB'), '37dB', IF((C='ELEVATION-GLASS-40dB'), '40dB', '')))) I'm trying to set the class name as the last string of the whole thing but I keep getting only 40dB and -1 for all the other classes. What to do?
  20. I'm sorry could you explain or share this script that you use for updating VPs? I mean correct me if I'm wrong but, what you are saying is, you have a script which updates a certain VP with the similar class visibilities of a saved view once you select it ? That's amazing, I would love something like that. You think you can explain this script? Thank you.
  21. I have a question. Is there a line type or tool which draws an infinite line along the design layer? I used to use "xl line" in AutoCad for lining up objects on a line (take it as a guide line) and I have always been curious if VectorWorks had a similar feature. Anybody know what I'm talking about?
  22. I had a nested IF function on one of my database cells. It runs fine but after I got out of the worksheet and tried to edit again all there was displaying was this part; =IF(CONCAT, 12, IF(' (', AREA(')'), AREA)) I had something like this before; =IF(('myrecord'.'myfield'='abc'), AREA/2, IF(('myrecord'.'myfield'='xyz'), concat(12,' (', AREA,')'), AREA)) Also, the database criteria is set to; ((R IN ['myrecord'])) if that helps anything. Anybody have an idea why this is happening or is it suppose to happen? All help is much appreciated.
  23. I got you Pat, alright well my maximum value is not more than 26 at this point so I'll go with CHR(64+NextNum). I'll do the "ABC..AABBCC" loop later on, and let you guys know how it goes. Thanks again for the help everyone.
  24. I think what Hippo said makes sense, so I think "AA" should come after "Z" and loop like that (which I don't know how that will work in code). Same for lowercase. But I'll start playing with the stuff you just provided Pat, thanks a lot.
  25. I get what you're saying ... I will have to sit down sometime and go over my basic CS skills to put this into practice but I don't have much time these days. Although thank you for the guidance, much appreciated.

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...