Jump to content

klinzey

Vectorworks, Inc Employee
  • Posts

    2,550
  • Joined

  • Last visited

Posts posted by klinzey

  1. In general plug-ins are only forward compatible. You may find a few versions that are compatible only because the plug-in format did not change between versions.

    As for compiler directives there are now a few available in 2012 so you can have conditional code run depending on the version. It's only going to work in 2012 and later so it will not do anyone much good now but in the future you will be able to conditionally exclude new 2013 code so that they will compile in 2012.

    -	IF directive ? This directive will define beginning of a block of code. It will contain a logical statement that will be evaluated. If the evaluation results in false, the following code until the ENDIF directive (or the end of the file) will be skipped by the compiler; If the evaluation results is true ? the code will be compiled;
    -	ENDIF directive ? This directive will define the end of a conditional block of code; the corresponding end directive of an ?if? directive, should be inside the same include file.
    -	DEFINE directive ? This directive will allow defining named values to be used in the IF directive conditions; this named variable is valid from the moment of definition until the end of the script or until it is undefined. 
    -	UNDEF directive ? Removes a named variable defined previously.
    

  2. You need to create a rectangular plug-in object.

    In the Plug-in editor when you click NEW select "Rectangular Object" rather than Point Object.

    You will get 2 default parameters LineLength and BoxWidth which will control the length and with. You can access them just like any other parameter.

    Unfortunately you can not change a Point Object to a Rectangular Object Plug-in.

  3. cvdub,

    Check the symbol that is is use in your Label Legend. Select the symbol and choose fit to objects. You want to check to see that size of the selections looks correct and that there is nothing making the symbol look taller or wider than you expect.

    As for moving the labels, do you see the blue handles over each label when the lighting device is selected? If the handles are not there you probably have Interactive Scaling disabled. To enable it activate the 2D selection tool and click the 2nd button in the mode bar.

  4. In the OIP of the lighting device there is a check box for "Set 3D Orientation". When that is check you will see 2 more parameters, X Rotation and Y Rotation. These two parameters along with the normal 2D rotation will allow you to orient the lighting device in 3D.

    Normally hybrid objects can not have a 3D rotation so the lighting device has to create the rotation with these parameters.

  5. Carl,

    There were a lot of changes between v11.5 and 2011 in Vectorworks and Vectorscript. Several Vectorscript calls from v11 are not obsolete and no longer work in 2011. Also the Vectorworks file extension changed from .mcd to .vwx so any script that access external Vectorworks files will no longer be able to find or use the old .mcd files.

    If you an give us the exact error message we may be able to help you out a little more.

  6. Grant,

    Nemetschek Vectorworks do most of our webinars using GoToWebinar\GoToMeeting.

    If you are unavailable at the time of the webinar you should register anyway. Typically (but not always) everyone that registers gets a follow-up email with a recording of the session. Unfortunately if you are not viewing it live you don't get the opportunity to have your questions answered by the presenters. I'm not involved with this webinar so I don't know if there will be a recording of this one.

  7. No. GoTo is just about it.

    In reality you should structure the code so that is is in an If Then Else statement after the dialog is finished.

    If RunLayoutDialog = 1 then

    Do Stuff

    else

    Do Nothing

  8. 2: would be the event of the "Cancel" Button but you really want to check the return value from RunLayoutDialog call outside of the dialog handler.

    If it's not 1 then the user canceled or closed the dialog without hitting the OK button.

    There are typically 3 default IDs used by the dialog.

    1: OK Button

    2: Cancel Button

    3: Help Box

    so your first control should be 4.

  9. You should have access to the standard 255 of the classic Vectorworks color palette if you want to pick a color by index.

    New colors will be generated with indexes greater than 255.

    The good thing about this is that the first 255 colors will always be the same color from the Vectorworks color palette, previously if the user changed the color palette you would not know what color you would get using the index.

    You can use ColorIndexToRGBN and RGBToColorIndexN if you need to find or create a color.

  10. The event seating looks for other objects placed by the event planning commands to use as a look to point. If none of those objects exists it places the look to point close to the center of the seating layout.

    From there you can grab the control point and move it to where you need it. The simplest option is to snap it to the midpoint of what you want to be the front of the seating area.

    It's impossible for the command to determine where the front of the seating is without finding some other object.

    If you want to place the look to point when you are creating the seating area use the create seating layout command.

×
×
  • Create New...