Jump to content

Sean R.

Member
  • Posts

    13
  • Joined

  • Last visited

Reputation

0 Neutral

Personal Information

  • Location
    United States

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I'm trying to make a selection script that gets user input and then does a concat function to create a search but it breaks when the user enters a space. how do I fix this? I can't seem to post the script either. How do I post the script on the forum?
  2. Just wondering if there was a way to prevent a data tag style from labeling an eligible object if there is already a data tag associated with that object? Ex. I am using a common record for Data vizualization control. I want to use this record in my data tags. If a use a data tag for a polygon with this record it will label the landscape and hardscape areas as well. If I label the hardscapes first with a different style of data tag can I prevent the first style from also labeling the already labeled hardscapes? Thank you 2023-11-21_DataVizExperimentingv2.vwx
  3. Is it possible to use dynamic text to pull in the name of the Tile applied to objects by a data (or how to object currently looks when that look is through the use of a data viz applied tile) in a graphic legend? If I am not using an object that uses styles, how do I pull in the name of what that object is in the legend if I can't pull in the name of the applied tile? In the supplied file I can get the name I want by pulling the class name + a field name. How would you recommend we approach this? a different method? only use record fields? Trying to switch to using more data viz graphics then class controlled graphics. Thank you 2023-11-20_DataVizTraining.vwx
  4. Procedure CustTool; VAR Name:STRING; Result:BOOLEAN; BEGIN PushAttrs; Result:= SetWallStyle(LNewObj,'Building Wall',0,0); PenSize(2); PenPatN(2); SetZVals(0", 0"); FillBack(256); FillFore(1252); FillPat(1); Result:= SetDefaultBeginningMarker(0, 15, 0.125000, 0.000000, 0, 0.000000, FALSE); Result:= SetDefaultEndMarker(0, 15, 0.125000, 0.000000, 0, 0.000000, FALSE); PenSize(2); NameClass('House-Remaining'); Layer('House Walls'); PenBack(256); PenFore(257); PenPatN(2); TextFont(28); TextJust(1); TextSize(12); TextSpace(2); TextFace([]); CallTool(-208); PopAttrs; END; Run(CustTool); I added the line "Result:= SetWallStyle(LNewObj,'Building Wall',0,0);" and deleted the lines " Result := DeleteAllComponents(nil); Result := InsertNewComponentN(nil, 1, 6", 5, 0, 0, 2, 2); Result := SetComponentName(nil, 1, '2D/3D Wall Existing'); Result := SetComponentClass(nil, 1, 0); Result := SetComponentFillColors(nil, 1, 257, 256); Result := SetComponentPenColors(nil, 1, 257, 256, 257, 256); Result := SetComponentUseFillClassAttr(nil, 1, FALSE); Result := SetComponentUsePenClassAttr(nil, 1, FALSE, FALSE); " the deleted line where created by the custom tool command
  5. I use a few standard saved views on a template drawing. However, older drawings do not have these. Is there a way to use vectorscript set the visibly of my main classes and layers to help quickly recreate these saved views in older files that have had there classes and layers updated to match our current template already? I saw someone mention vsave(name:string) but would that work for this? Any ideas are welcome. Thanks
  6. what If I need to create the saved view in the file still? I have saved views I use on my current template but on older drawings these don't exist. If I want to use them I have to build them from scratch. can you show me how to use vsave(name:string) to create a script of a current view in one file that I can recall in a different file (after updating the classes and layers manually to match the former file) Thanks
  7. Could you post the working script. I can't find how to use the routine and would like to see how you got it to work.
  8. I would also like to be able to make custom "Auto - Custom Plot Dates" as we use YYYY_MM_DD for dates.
  9. I tried using this method to make a script to update my classes with the new tiles I want to use but it did not work. It made the classes that did not exist like I wanted but it doesn't seem to set tiles as a class setting. Any ideas?
  10. I believe I have figured out my problem. Thank you.
  11. Hello, I am very new to python and programming. I have been making small marionette networks that recreate a record and then attach that record to objects in my drawing based on criteria. I have saved those marionette networks as python scripts. I want an easy way to run one python script that will run all the python scripts that were saved from marionette scripts. What is the best way to do this? Example: I have a Boulder_Record.py and a Barrier_Record.py. Each creates a record and attaches to a set of objects. I want to use a seperate Launcher.py file to run each of those scripts one at a time. I am new so if you could show an example of doing this it would help a lot. Thank you in advance.
  12. Do you have an example of this for the current stake tool?
  13. Hello, I have been using vectorworks for 1 year and am new to vectorscripts. I would like to make a script that sets the default settings of the Stake tool. I read some other posts about a similar topic but am not able to understand the solution. I can't seem to properly call up the record and change the field value for the tool and I can figure out how to find the record for the tool to make sure I trying to edit the right record. Anyone know how to change the stake tool and have a working script or a sample one on how to do this? Thanks
×
×
  • Create New...