Jump to content

Julian Carr

Distributor
  • Content Count

    110
  • Joined

  • Last visited

Community Reputation

24 Great

3 Followers

About Julian Carr

  • Rank
    Journeyman

Personal Information

  • Location
    Australia

Recent Profile Visitors

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

  1. Julian Carr

    Script Error

    You must specify units when nominating a size in a script, so this line: RegularPolygon(Px,Py,12,6,1); should be something like: RegularPolygon(Px,Py,12",6,1); or RegularPolygon(Px,Py,12mm,6,1);
  2. Julian Carr

    How to retrieve detail level in PIO

    A couple of things to note: 1. You need to set the 3 levels of detail for each object as there is no assumption that if an object is visible at one level, it will automatically be visible at another. 2. If the PIO contains groups, you need to set the detail level for each object within the group as setting it for the group itself will have no effect.
  3. Julian Carr

    3D Polyline length

    This might be quicker. Convert a copy to nurbs then get its length using HLength(): Procedure T; VAR hTemp, h3DPoly : HANDLE; BEGIN h3DPoly := FSActLayer; hTemp := ConvertToNURBS(h3DPoly, True); Message('3D Poly Length: ', HLength(hTemp)); DelObject(hTemp); END; Run(T);
  4. Just wondering if anyone knows how to get a handle to a Plant object's style definition, from a given handle to a plant instance? GetPluginStyleSymbol() works with other styled PIOs, but not with Plant objects. Thanks.
  5. Julian Carr

    Setting Hybrid symbol fill

    Then you have to consider how the symbols are constructed. Are there container objects within that you need to traverse such as Groups, or PIOs that are controlling fill attributes of objects within independently? Then you will also need to check whether any of the objects have their attributes being controlled by class and respond accordingly. So all in all, not a simple task.
  6. Julian Carr

    In Top/Plan view ???

    Don't think so. It could make drawing navigation very slow.
  7. Julian Carr

    In Top/Plan view ???

    I think this works: FlagTopPlan := GetProjection(ActLayer) = 6;
  8. Julian Carr

    Symbol embedded in plugin (but not drawn!)

    Glad you got it working. Apart from copying and pasting between files, this functionality also ensures that the symbol is seen as being in-use by the Purge command, so won't get accidentally deleted.
  9. Julian Carr

    Symbol embedded in plugin (but not drawn!)

    You need to add a symbol instance to the profile group of the PIO using SetCustomObjectProfileGroup(). Because this is persistent between regens, you need to delete the profile group on each regen then reinstate it. Something like this: Symbol('mysymbol', 0, 0, 0); h1 := LNewObject; h2 := GetCustomObjectProfileGroup(ghParm); IF h2 <> Nil THEN DelObject(h2); IF h1 = NIL THEN Flag := SetCustomObjectProfileGroup(ghParm, h2) You can always check the existence of the profile group by selecting your object then using the Edit Group command.
  10. Julian Carr

    Creating a wall with dotted center line

    Sorry you will need to put a minus in front of Name2Index, but also note that you may not see the line is dashed because the line from the adjoining component is solid, so you might need to do something like this: procedure test; var Response : boolean; begin Response := DeleteAllComponents (nil); Response := InsertNewComponentN (nil, 1, 5, 0, 10, 0, 0, 2); Response := InsertNewComponentN (nil, 2, 20, 0, 6, 10, -Name2Index('Dash Style-2'), 0); SetTool (13); end; Run (test);
  11. Julian Carr

    Creating a wall with dotted center line

    Try using Name2Index('Dash Style-2') in place of -2, as the number will vary depending on the order the dash styles were imported into the drawing. Obviously the dash style will already need to exist in the file for this to work.
  12. Julian Carr

    Assign Class to Selected Symbol via Custom Script

    So what Josh is referring to is a structure like this, which is one of the most time saving scripts you can have because it can be adapted to do so many things:: Procedure TimeSaver; Procedure DoIt(h1 : HANDLE); BEGIN SetClass( h1, ‘Class Name’ ); END; BEGIN ForEachObject(DoIt, (Sel = True)); END; Run(TimeSaver);
  13. Julian Carr

    Date function - data structure changed in 2019?

    The Date() procedure has always used the system settings to determine what is displayed. On the odd machine it ignores the system settings, but this is very rare.
  14. Julian Carr

    Tracking Control Point Changes in Linear PIO

    Never mind, I got it working. Not really sure what I did however, but now it works.
  15. Is anyone using vsoStateGetParamChng() with n event enabled linear PIO? It works OK with a point object, but returns false for a linear object. Thanks.

 

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.

×