Jump to content

Pat Stanford

  • Content Count

  • Joined

  • Last visited

Everything posted by Pat Stanford

  1. Pat Stanford

    Viewports not showing all the elements in a design layer

    Hi @jonp0001, I know your question may have been rhetorical, but there are actually good reasons to set visibility in multiple places. The overarching idea is that by being able to change the visibility (and in some cases attributes) of objects in a class you use the same model to display in different ways for different purposes. Draw all of the detail you need into a single model on a design layer at 1:50. You can then use classes to turn off the objects that are too detailed for that scale, but still have them visible in a Viewport at 1:4 scale. Or draw two different options in two different classes. You can then make two viewports, set the class visibilities different and be able to see both options side by side without having to duplicate the other parts of the building. Also, what are you thinking of as the third place to set Class Visibilities? I can only think of the overall drawing class setting in the Navigation and Organization palette, and for a specific viewport under the Classes... button in the OIP (Object Info Palette). If you set object attributes to be By Class, you can then not only change the visibility of the objects in a Viewport, but also the attributes for just that one viewport. HTH
  2. Pat Stanford

    List object style in a worksheet

    I don't have WinDoor, so I can't comment on that. I took a quick look at the title block boarder object yesterday and it appears that the Style is stored in the parameter record. I have not had time to look and see if there are other hidden records storing the information. So for a quick starting point I have to say NO it is not possible, at least not easily.
  3. Pat Stanford

    space bar as shortcut option

    Once you get used to it, I would bet that you will use the boomerang function to pan the drawing to get to what you need way more often than you need to switch back to the selection tool.
  4. Pat Stanford

    space bar as shortcut option

    It kind of already does. The space bar is used as the "Boomerang" tool. By default, it moves you to the Pan (hand) tool, but by hitting the X key while holding down the space bar it will give you temporary access to the Selection tool. Pretty much any of the 2D tools (in the Basic tool palette) can be used. I have not tried many others, but I think they will work also. You can either use the keyboard shortcut or go an click in palette to activate the second tool. When you release the space bar it will return to the original tool.
  5. Pat Stanford

    Viewports not showing all the elements in a design layer

    Just to amplify @RGyori's comments, you need to be extra careful with "Container" objects. Groups, Symbols, PIOs, Viewports all have a class for the top level object. Objects that are contained inside these objects can be in a different class. For the contained objects to be visible, both the class of the container and the class of the object must be visible. This can get quite tricky if you have nested groups in different classes. Start with everything on and then see what you can turn off without losing your objects. Or go back to the design layer and dig in to determine what set of classes contained objects need to have visible.
  6. Pat Stanford

    Remove Crop from Image

    Or use the 2D tools (reshape, add surface, clip surface) to edit the existing object to what you need.
  7. Pat Stanford

    Viewports not showing all the elements in a design layer

    First guess is that it is still a Class Visibility issue even if you think you have checked everything. Select the Viewport in the OIP. Click the Classes... button and make sure that all the classes are set to be visible.
  8. Hi Sam, First try Name2Index as part of the SetLSN command: SetLNS(H1,Name2Index('YourLineStyle'); Second, using a Folder Index of zero (0) in the BuildResourceList or BuildResourceList2 functions will return only resources in the current document.
  9. Pat Stanford

    Get PIO information

    GetCustomObjectInfo is used to get the handles you need to work from INSIDE the PIO. Since you are outside the PIO, you need to determine the Record.Field that contains the information you need and use that. Check out this thread. It has a script that will create a worksheet showing all of the fields of a selected PIOs parameter records
  10. Selected walls in Top/Plan already show this information. There is a triangle that displays at the beginning of the wall. It is in the same color as the Snap Points - Active Layer Interactive Appearance Settings. I would think in many or most drawings if this displayed for non selected walls it would be an impediment rather than a benefit. But that is me. Your preference could be different.
  11. Pat Stanford

    Title Block Border Styles / Libraries

    It is just my magnetic personality 😉
  12. Pat Stanford

    Distorted File Help

    It looks to me like you have gotten your "camera" set to slightly below the ground plane and are looking up through the floor. The grey rectangle is the floor/ground plane. Try either using the Standard Views from the Views menu or use the Flyover tool to change your view.
  13. Pat Stanford

    Title Block Border Styles / Libraries

    Yep, I have an idea. It is not the Title Blocks folder you want. Try putting them into the Sheet Border - Title Blocks folder. And then click the gear icon in the Resource Manager and choose Refresh Libraries.
  14. Pat Stanford

    Plane not deleted after planar boolean

    I don't know if it is an issue in Marionette, but in Vectorscript I am very careful to not start any variable names with the letter P. If you start with P and later reuse the code in a Plugin Object, it is treated as a Parameter rather than a normal variable.
  15. Pat Stanford

    Title Block Border Styles / Libraries

    Check out these threads/posts on how to properly set up the Default Content in the correct folder path. TL:DR WorkgroupFolder:Libraries:Default:ProperFolderNameHere:VWXFileContainingResourcesHere See Application Folder or User Folder for acceptable ProperFolderNames.
  16. I agree with Michael. Normal straight walls don't have a clockwise or counterclockwise property. If you think about it they can't as it all depends on what you are trying to do. If you draw a vertical wall from top to bottom and another from bottom to top, neither of them was drawn clockwise. They are just a straight line. Each has a left and right compared to how they were drawn, but that only matters because you are using components or textures that need to be on the side you want. Round walls do have a clockwise/counterclockwise direction as that is the side the center of the curve is on. Walls automatically generated from Spaces kind of know which way to go as they use the standard that the Left side of the wall is the outside and the right side is the inside. But as soon as it is drawn, there is still not clockwise, just left and right sids. If you can come up with an algorithm that will reliably tell you which walls need to be reversed without your needing to look at the drawing (using the beginning and end points of the wall)to know what should be inside and what outside, I will figure out a way to script it and we will split the proceeds. 😉 And maybe we will even cut Michael in for a share.
  17. Pat Stanford

    Drawing information moving miles away...

    It sounds suspiciously like someone is importing a DWG into the working file that is changing the origin. I just did a rant at the users group meeting last weekend that in my opinion, any import function should always be done into a new blank VW file and then the data referenced or copied from there. I know there are exceptions where you want to reimport and updated version of a DWG into a "shuttle" file. It sounds like you have the right workflow, but is someone taking a shortcut and not following the proscribed workflow?
  18. Pat Stanford

    Wall visibility issue

    One of my favorite topics. 😞 Active Only view of Classes is exactly what it says. ONLY the objects that are in that specific class are shown. If you have a container object (Symbol, Group, PIO, Wall) it is possible to give the objects INSIDE the group a class that is different than the class that the Group has. That means that you can make an object go invisible because the class that the Group is on is set to Active Only while the objects inside are set to something else and therefore nothing is seen. The inverse of this is also true. If you objects inside the group that are in the Active Only class but the container object is not, then you still will not see those object because the Group being invisible makes all of the contained objects invisible. My guess is you are using styles walls with components in different classes. That would explain what you are seeing. In even moderately complex drawings, Active Only for classes is not very useful in real life. You need to manually control the class visibilities to get what you need. Make sure that the classes with Wall Components are visible as well as the Wall class. As a shortcut, did you know that you can hold down the Option key while clicking in a visibility column in the Navigation Palette and it will set that visibility for ALL the classes. Also remember that the Active Class is always visible. You can set your Wall class (or another group of classes) to visible and then use the Command and Left/Right Arrow keys to step through the other classes making them active and visible.
  19. Pat Stanford

    Custom Tool point of insertion

    Check out the User Interactive procedures in the Function Reference. Specifically the one you probably want is: PROCEDURE GetPt (VAR pX:REAL; VAR pY:REAL ) ; This returns the X and Y coordinates of the position the user clicked at. Use that as the insertion point for your object.
  20. Pat Stanford

    Dimension Trailer Text

    Try adding a ResetBBox(Selection) or ResetObject(Selection). You may also need to call Redraw or RedrawAll at the end of your code.
  21. Pat Stanford

    NextObj or NextSObj that works across layers?

    ForEachObject handles objects in the drawing, not layers. The criteria you have specified should give you one entry in the text file for each object in the drawing. If you have layers without any objects then you will not have entries for those layers. If you just want to make a list of the Layers in a drawing, just use FLayer and NextLayer.
  22. Pat Stanford

    Path Extrusion in Layers with offset elevations

    What do you mean by the profile object takes an entirely different path? Can you show us images? Can you post a small test file with copies of the extrudes on layers with different elevations? It will be much easier and better to try and troubleshoot your objects than to try and create an object that duplicates the problem.
  23. Pat Stanford

    Workgroup Templates not Available for One User...VW2019

    I THINK that similarly named files in the workgroup folder override those in the application folder and the User Folder overrides the workgroup folder. I would start looking there. Or as a quick/dirty test, just drag their user folder to the desktop and restart VW. If the problem goes away, then you know it was a User Folder problem. If the problem is still there, you can delete the newly created User Folder and drag the one from the desktop back.
  24. Pat Stanford

    Focus and Zoom on each selected

    Since Fit To Objects works on selection, not on handles, you need a way to select only a single object. Use a loop to step through each selected object and store the handle in an Array of Handles. Deselect everything. Step through the array and select the first object and do Fit To Objects. Repeat for each object in the array. If you need to still have everything selected at the end, do an additional loop through the array to select all the objects. Ask again if you need a better description.
  25. Pat Stanford

    control points 101

    So just use the SetRField to set the control point to be where you want the label and then use the control points to set the location of the text. But actually that might not work. I seem to remember that setting values to parameters are not stored until the end of the PIO execution. So you probably need to read the original control points into variables and then modify the variables to get the location to write the text and to also set the control point values before the end of the PIO.


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.