Jump to content

The Hamma

Member
  • Posts

    426
  • Joined

  • Last visited

Reputation

200 Spectacular

7 Followers

Personal Information

  • Occupation
    Architect
  • Location
    United States

Recent Profile Visitors

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

  1. I do know there are vectorscript commands for these but does anyone know what the Object Visibility Commands DoMenuTextByName chunk name is.
  2. Does anyone know how to set the default nurbs curve degree for a 3D path object to always be "1"?
  3. Has this option changed in 2025 as when I try to adjust the curve degree the lowest I can set it 1, When I press 0 it defaults to 3. May be a bug.
  4. Attached is a Vectorworks file that contains a script to merge multiple lines of text into one text block. Simply select the multiple blocks of text you wish to merge and double click "Merge Text Blocks". The script will merge the text from highest y value to lowest y value. As always I recommend saving your work prior to running any scripts. """ This script merges multiple lines of text into on text block in order of highest to lowest y value This Python Script may be freely distributed. No warranty provided. Use at your own risk. David Hamer, 03/31/2025 """ def makelist(H): Master_List.append(H) # adds to list Master_List = [] # defines list to contain handles to all selected objects Duplicate_List = [] # defines duplicate list to contain handles to all selected objects New_List = [] # defines final list to contain handles to all selected objects LongString ='' # defines LongString as a string vs.ForEachObject(makelist,"(((T=TEXT) & (VSEL=TRUE)))"); #Sends each selected text object to def makelist while len(Master_List) > 0: #Goes throught the list of text objects until none are left Duplicate_List = Master_List.copy() #duplicates the Master_List to Duplicate_List while len(Duplicate_List) > 1: #Goes throught the Duplicate_List of text objects until two are left pt = vs.Get2DPt(Duplicate_List[0],1) #gets the xy coordinates of the first item in the Duplicate_List pt2 = vs.Get2DPt(Duplicate_List[-1],1) #gets the xy coordinates of the last item in the Duplicate_List if pt[1] > pt2[1]: #Compares y cooridinates of each and removes the lowest y valued item from the Duplicate_List del Duplicate_List[-1] # in this case the last item was the lowest y value else: del Duplicate_List[0] # in this case the first item was the lowest y value New_List.append(Duplicate_List[0]) #appends the last remaining item in the Duplicate_List to a New_List Master_List.remove(Duplicate_List[0]) #removes previously appended item from the Master_List for H in New_List: # Steps through every item in New_List Textstring=vs.GetText(H); # Gets the Text value of the active item in New_List LongString=LongString+Textstring # Adds return character to end of LongString if New_List[-1] != H: # Checks to see if this is the last value in the list LongString=LongString+"\n" # Adds return character to end of LongString vs.DSelectAll() # Deselects all currently selected objects vs.CreateText(LongString) # Creates a new text object from LongString Merge Text Blocks.vwx
  5. Everyone: Please post your favorite prompts and settings.
  6. I've created custom path object tool and I can set the texture by class but when I go to the OIP and try to set the texture nothing happens. Is there a command that I need to add to the script to have the OIP control the texture?
  7. This helped me with a similar situation
  8. Thanks for the tip, I will try this next crash.
  9. While working in a project sharing working file Vectorworks crashed My next step was to open the backup file of my working file. This is where the issue arises. The backup file was no longer attached to the project file (I believe in previous versions this was not the case) The project file still has my items checked out. There is no way for me to save my changes from the backup working file to project file. I worked on several layers and pieces and parts of the file. What is the recommended process for correcting this? Fortunately for me there was no one else working in the file at this time so I was able to recreate the project file from my backup, but this is rarely the case.
  10. I tried that but the record attached to the tag in the resource manager doesn't seem to want to follow the tag from the resource manager to a new drawing. Scratch that, I must have done something wrong. This will work but it makes it harder to get the handle to data tag if more than one item is associated with the roof.
  11. Actually tried reducing the script to doing nothing but exporting text. It only crashes when I try to call the DATATAGFIELD('Run') value from the tag formula and only when trying to tag a roof face within a roof object.
  12. This version is simplified so it won't crash Vectorworks. You will get a message if you try to tag a roof object rather than a roof face. You can only add one tag to a roof face or the tag won't work. See the post above for locating the files in your libraries. You can still adjust the Run value but it needs to be edited in the tag layout formula directly. Both the Run and Rise values need to be adjusted. To change the Run value edit the change the value of '12' in the Pitch formula =RUNSCRIPT(120, 'RoofSlopeAngle.vs', 'Rise', '12') You will also need to chage the value of Run in the tag if the tag has a seperate Run Value for example. Roof Pitches on Plan.vwx RoofSlopeAngle.vs
  13. I have identified the issue with the crash but I don't know if there is a solution. It is crashing because of the DATATAGFIELD('Run') part of the script when it finds the objects within a container like a roof. Without DATATAGFIELD('Run') the rotation function will not work and theirfore is an essential part of the tag. I have tried to define the criteria to omit objects that have a parent but there does not appear that data tags have this functionality at this time and data tags are supposed to select objects within a container.
  14. I revised these tags to take advanage of new data tag features of Vectorworks 2025. The tags will now rotate with the roof slope automaticaly. With this ability I added a new tag to show the direction of the roof slope down. Attached are two files. One contains the data tags Roof Slope Arrow.vwx and the other contains the companion script RoofSlopeAngle.vs. For these tags to work you need to place the companion script RoofSlopeAngle.vsin the "\Libraries\Defaults\Reports_Schedules" in your USER, WORKGROUP or APPLICATION folder. ( Vectorworks restart may be necessary). I also recommend placing Roof Slope Arrow.vwx in "\Libraries\Annotations\Data Tag (styles)\Architecture Space" in your USER, WORKGROUP or APPLICATION folder. (Warning: This tag currently will crash your drawing if you attempt to use it on a Roof object instead of a Roof Face. Be sure to ungroup your Roof object before taging. See current solution below)
×
×
  • Create New...