Jump to content

Pat Stanford

Moderator
  • Posts

    12,651
  • Joined

  • Last visited

Posts posted by Pat Stanford

  1. 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

    • Like 1
  2. 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. 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.

    • Like 1
  4. 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.

    • Like 1
  5. 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

     

     

  6. 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.

  7. 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.

  8. 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.

  9. 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?

  10. 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. 

  11. 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.

  12. 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.

  13. 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.

  14. 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.

  15. 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.

  16. 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.

    • Like 1
×
×
  • Create New...