Forgot your password?
Posted December 6
A1. Layer stacking order.
A2. Don't know.
Posted November 20
Try this slight variation (untested):
request:='CallOut PIO Page Unit Margin';
ForEachObject(SetObj_Value,(((VSEL=TRUE) & (PON='Callout'))));
Posted October 19
Sorry, I meant to say this is where it needs to be if you are using collapsing widget separators. Otherwise, it can be used in different places.
Posted October 18
I'm not seeing any issues either, but it might depend on where in the code you are calling it. Should be in kObjOnInitXProperties (event 5).
Posted September 30
CreateLineWeightPopup() doesn't give the option to use class thickness Andy.
Try GetLineWeightChoice() Andy. At least that's what I use.
Posted September 19
Set the above script to be Vectorscript, not Python. If you can't do that, in python it will be something like this:
vs.SetClassN(vs.FSActLayer(), 'my class name', True)
but I know nothing about python.
Posted September 17
You could try this:
SetClassN(FSActLayer, 'my class name', True);
I likely won't work in groups or symbols though. If used on a group (not in a group), the last argument (true or false) will determine if all the objects in the group also get the class assignment.
Posted September 5
You need to use SelectChoice(). The index is zero based so make sure you load the menu from zero.
Posted September 3
Wild guess. Try adding this:
at the end of the create floor section.
Posted August 13
Try changing the criteria in ForEachObject() to:
(INSYMBOL & INOBJECT & INVIEWPORT & (T=DIMENSION) & (SEL=TRUE))
in General Discussion
Posted August 9
Actually I did know Pat and have used it in a worksheet previously. I just forgot. It's there in the insert function list.
Posted August 7
I agree Pat. Some invisible characters in the code I suspect.
This script works for me. Pat's one doesn't. You have to call the script name not the procedure name however, in RunScript().
Posted July 30
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.
It works for me. What is the error?
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 DoIt(h1 : HANDLE);
SetObjectVariableString(h1, 10, ' Typ.');
ForEachObject(DoIt, (T=DIMENSION) & Sel);
Yep ResetObject(Selection); will do it. Also note there is a missing semi colon on line 6.
Posted July 29
It works for me Sam and definitely needs to be in the kObjOnInitXProperties event (5). It's possible it also needs this:
kObjXPropAcceptStates = 18;
gFlag := SetObjPropVS(kObjXPropAcceptStates, TRUE);
Also have you tried quitting and restarting Vw? I find this necessary sometimes even in developer mode.
kObjXPropShowPrefDialogWhen = 32;
kCustomObjectPrefNever = 0;
kCustomObjectPrefAlways = 1;
kCustomObjectPrefNew = 2;
blah blah blah...
in event loop 5:
gFlag := SetObjPropCharVS(kObjXPropShowPrefDialogWhen, Chr(kCustomObjectPrefNever));
Posted July 28
I'd probably use Pat's suggestion, but to answer your specific question, you would use HRotate() and HMove().
Posted July 22
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().
Posted July 21
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.
FUNCTION SetWallOverallHeights( theWall :HANDLE; botBoundType :INTEGER; botBoundStory :INTEGER; botLayerLevelType :STRING; botOffset :REAL; topBoundType :INTEGER; topBoundStory :INTEGER; topLayerLevelType :STRING; topOffset :REAL) : BOOLEAN;
Posted July 11
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.