Jump to content

Pi_

Member
  • Posts

    73
  • Joined

  • Last visited

Posts posted by Pi_

  1. yes,

    it is in the vectorscript Appendix,

    I discovered getobjectvariableint is gives the default break mode of the plugin, not the instance break mode.

    setobjectvariableint doesn't change anything (not the default value or the instance value)

    could it be it is only available for SDK plugins?

  2. Hi,

    has anyone noticed that sometimes when you add parameters to an existing PIO that old instances of the PIO have a 'corrupt' layout in the OIP. (newly pasted instances have the correct layout)

    The problem is mostly not situated around the position of the new parameter but elsewhere (old parameters 'disappear')

    I noticed this before and I always tried to avoid making new parameters to an existing PIO but on this project I need to.

    We have 12 vectorwork users all of them using this PIO, giving it a new name would mess up our workflow.

    the PIO is event enabled and has custom buttons.

    recompiling the script doesn't help

    in attachment you'll find a picture of the OIP of an old and a new instance of the PIO after adding a new parameter (dropdown).

  3. FUNCTION SetTextStyleRefN

    ( objectId :HANDLE;

    start :INTEGER;

    count :INTEGER;

    textStyleRef :LONGINT

    ) :BOOLEAN ;

    could do it, but how can I get the 'textStyleRef' if I don't have an object with that textstyle.

    Is it possible to create a new textstyle and set its attributes, and get the ID of the textstyle?

  4. is it possible to partially color a string, like it is possible to partially make it bold (with SetTextStyle).

    You can make the object in vectorworks, but an export and re-import to vectorscript doesn't work...

    see attachment

  5. a script running in VW2014 doesn't work in VW2015.

    I am unable to create an image-pulldown menu based on symbols while in VW2014 the same script works fine.

    using:

    CreateControl(ID, 102, 10, '', 0);

    in the definition of the dialog

    and:

    popupindex := InsertImagePopupObjectItem(dialogID, 102, symbolName);

    SetImagePopupSelectedItem(dialogID, 102,popupindex);

    in the drive dialog section

    anyone experienced problems with these commands in VW2015 SP3?

  6. hi,

    has somebody figured this out? I posted on this techboard and on VECTORSCRIPT-L about this (only discovered this post now)

    Vectorworks Home » Forums » Customization » Vectorworks Vectorscript » CreateVPClOvrd working?

    No answers...

    I just want to know if we are making a mistake or if this is a bug and we have to wait for a new Service Pack...

  7. very nice feature (priority of material in archicad).

    For a starter, the 'Wall hole component' should work with other objects than walls. You should be able to insert objects in slabs, colums, roofs,... like you can in walls. As a structural engeneering office we often had to insert for example a wide-flange beam in a slab or column.

    We use a label that we snap into a wall and reads all information (material, width, area, volume, openings... It would be nice if we could do the same with slabs and columns...

  8. I have the same problem in VW2015 with my PIO's who use this line of code. All PIO worked fine in VW2014 (SetObjectVariableBoolean(H, 1160, FALSE);)

    one PIO was a label that we put in walls, when layerlevel is not 0, PIO crashes on this line of code (that sets the PIO itself to the layerplane)

    another PIO use an "extrudeAlongPath" I used to set the profile of the extrusion to the layerplane. In VW2015 it crashes (sometimes,...)

    SetObjectVariableBoolean (polyh, 1160, False);

    extrudeh:=ExtrudeAlongPath(ash,polyh);

    its seems a bug to me...

  9. I'm trying to write a script that inserts PIO in a wall. (the PIO is a kind of label, that I now add manualy)

    I tried 3 different approaches, none of them works...:

    * AddSymToWall/AddSymToWallEdge, doesn't seem to work

    * labelh:=CreateCustomObjectN(labelnaam,pX,pY,0,False);

    ok:=SetParent(labelh,h);

    or

    * labelh:=CreateCustomObjectN(labelnaam,pX,pY,0,False);

    labelh:=CreateDuplicateObject(labelh,h);

    Is it possible?

  10. hi Diamond,

    you can export the sheetlayer to modelspace but it will not export custom classproperties overides of the viewport. Use the "export viewport as 2d-graphic" are something (I work with the dutch version)

    I also have problems with the dwg export and made the following post:

    Forums » Feedback Center » Wish List Requests » dwg export sheet layer with custom class properties

  11. Thanks for the reply,

    I just tried what you suggest, doesn't work. Have you ever worked with this commands?

    resetobject(viewportHandle);

    CreateVPClOvrd(viewportHandle, '2.1 beton - (1.1) snede');

    resetobject(viewportHandle);

    SetVPClOvrdFillFore(viewportHandle, '2.1 beton - (1.1) snede', 65534,0,0);

    resetobject(viewportHandle);

    SetVPClOvrdFillBack(viewportHandle, '2.1 beton - (1.1) snede', 65534,0,0);

    resetobject(viewportHandle);

    SetVPClOvrdPenFore(viewportHandle, '2.1 beton - (1.1) snede', 65534,0,0);

    resetobject(viewportHandle);

    SetVPClOvrdPenBack(viewportHandle, '2.1 beton - (1.1) snede', 65534,0,0);

    resetobject(viewportHandle);

  12. does anybody have experience with 'CreateVPClOvrd'?

    I want to create a new vieport with custom class attributes but this seems to do nothing. also after the scipt GetVPClOvrdCount(viewportHandle)=0...

    When I use "GetVPClOvrdCount(viewportHandle)" on an manual editted viewport it gives correct results.

    CreateVPClOvrd(viewportHandle, '2.3 dragend metselwerk - (1) snede');

    SetVPClOvrdFillFore(viewportHandle, '2.3 dragend metselwerk - (1) snede', 65535,0,0);

    SetVPClOvrdFillBack(viewportHandle, '2.3 dragend metselwerk - (1) snede', 65535,0,0);

    SetVPClOvrdPenFore(viewportHandle, '2.3 dragend metselwerk - (1) snede', 65535,0,0);

    SetVPClOvrdPenBack(viewportHandle, '2.3 dragend metselwerk - (1) snede', 65535,0,0);

    SetVPClOvrdFillOpty(viewportHandle, '2.3 dragend metselwerk - (1) snede', 50);

    alrtdialog(concat(GetVPClOvrdCount(viewportHandle)));

    resetobject(viewportHandle);

×
×
  • Create New...