Jump to content

Julian Carr

Distributor
  • Content Count

    148
  • Joined

  • Last visited

Community Reputation

43 Great

4 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

    Dimension Trailer Text

    Try changing the criteria in ForEachObject() to: (INSYMBOL & INOBJECT & INVIEWPORT & (T=DIMENSION) & (SEL=TRUE))
  2. Julian Carr

    List object style in a worksheet

    Actually I did know Pat and have used it in a worksheet previously. I just forgot. It's there in the insert function list.
  3. Julian Carr

    List object style in a worksheet

    I agree Pat. Some invisible characters in the code I suspect.
  4. Julian Carr

    List object style in a worksheet

    This script works for me. Pat's one doesn't. You have to call the script name not the procedure name however, in RunScript(). Procedure T; BEGIN WSScript_SetResStr(GetPluginStyle(WSScript_GetObject)); END; Run(T);
  5. Julian Carr

    Dimension Trailer Text

    It's possible you have picked up an invisible character by copying from the browser. Try deleting the last line and everything below it then retyping it manually. Or copy the script to a text editor and turn on invisible characters to see if you can spot something.
  6. Julian Carr

    Dimension Trailer Text

    It works for me. What is the error?
  7. Julian Carr

    Dimension Trailer Text

    You can do this using the single most powerful procedure in VS: ForEachObject. It also filters out other object so will only affect dimensions in this case. PROCEDURE DimTypical; PROCEDURE DoIt(h1 : HANDLE); BEGIN SetObjectVariableString(h1, 10, ' Typ.'); ResetObject(h1); END; BEGIN ForEachObject(DoIt, (T=DIMENSION) & Sel); END; Run(DimTypical);
  8. Julian Carr

    Dimension Trailer Text

    Yep ResetObject(Selection); will do it. Also note there is a missing semi colon on line 6.
  9. Julian Carr

    Suppressing the Default OIP at creation

    It works for me Sam and definitely needs to be in the kObjOnInitXProperties event (5). It's possible it also needs this: CONST kObjXPropAcceptStates = 18; gFlag := SetObjPropVS(kObjXPropAcceptStates, TRUE); Also have you tried quitting and restarting Vw? I find this necessary sometimes even in developer mode.
  10. Julian Carr

    Suppressing the Default OIP at creation

    CONST kObjXPropShowPrefDialogWhen = 32; kCustomObjectPrefNever = 0; kCustomObjectPrefAlways = 1; kCustomObjectPrefNew = 2; blah blah blah... in event loop 5: gFlag := SetObjPropCharVS(kObjXPropShowPrefDialogWhen, Chr(kCustomObjectPrefNever));
  11. Julian Carr

    Rotating and offsetting text

    I'd probably use Pat's suggestion, but to answer your specific question, you would use HRotate() and HMove().
  12. Julian Carr

    Defining Height of a Wall Style

    Wall styles don't typically define wall heights. Rather they define what is used to control the wall or components heights (layer wall height, storey level, etc), as well as having an offset. And of course walls don't have to be level on the top or bottom, and can also be controlled by slabs and roofs, making the task even more fraught. But if you really want to delve into it, then look in the Function Reference in the Objects - Architectural section, for things like SetComponentWallTopOffset().
  13. Julian Carr

    Dialog with n-number of items

    It's conceivable but would be messy, and could also be problematic if there were so many hatches that the dialogue was too large to fit on the screen. Normally you would would use a list browser for something like this, which would see scroll bars appear if the list was longer than the size of the list browser.
  14. Julian Carr

    Defining Height of a Wall Style

    see http://developer.vectorworks.net/index.php/VS:SetWallOverallHeights FUNCTION SetWallOverallHeights( theWall :HANDLE; botBoundType :INTEGER; botBoundStory :INTEGER; botLayerLevelType :STRING; botOffset :REAL; topBoundType :INTEGER; topBoundStory :INTEGER; topLayerLevelType :STRING; topOffset :REAL) : BOOLEAN; Julian
  15. Julian Carr

    "Mirror" script returns point error

    Is Mirror a function in Vectorscript? It's not on the Developer site...

 

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.

×