Jump to content

VvierA

Member
  • Posts

    182
  • Joined

  • Last visited

Posts posted by VvierA

  1. Hello,

    another little problem.

    I try to make a custom PIO that displays the y coordinate of the PIO as some kind of custom made level tool.

    I'd like the text size to be set by the standard setting in the standard 'Text' menue of Vectorworks.

    So I tried to retrieve the setting with:

    textsizeR := GetPrefReal(57);

    But it fails: no matter what text size is selected it shows 48401.111 if I use message(textsizeR);

    VvierA

    P.S

    Even better I would like the text to behave like a dimension text. Showing the unit mark and the number of decimals according to the settings in the general units menue of Vectorworks. Is this possible?

  2. Hello,

    I'd like to get access via Vectorscript to all standard record information.

    A path object for example:

    I can get LineLength which is a standard parameter in the parameter list of the PIO object.

    But in the object info palette there is also:

    x coordinate

    y coordinate

    z coordinate

    angle

    Where do I find this variables?

    Do I have to use 'GetSymLoc' to get x and y? But how do I get z and the angle?

    Kind regards

    VvierA

  3. @Jonathan

    I tried it and now I know why it's not exactly what I was looking for:

    The record information can accidently be changed by the user and afterwards it's not easy to find out, if any information has been changed.

    @Pat

    Option Nr. 1 is what I'm going for - I think. It looks the most like the solution I was looking for. My favourite was some kind of 'information or notes window' as a standard feature for every symbol. You shouldn't be to see that information as a user of the symbol but not be able to change it without entering some kind of 'edit symbol mode'.

    Thank you both

  4. Hello,

    let's say I'd like to make a simple rectangle as a plugin object.

    I'd use rect(0,0,10,-5) to draw it.

    The insertion point would be automatically the origin of the plugin object (i.e. 0,0).

    The question ist:

    How can I change the insertion point of the plugin object.

    Let's say, I want the insertion point to be in the center of the rectangle.

    Do I have to change the command to rect(-5,2.5,5,-2.5)

    or

    Is it possible to 'move' the insertion point independently, so that I do not have change the position of the rectangle on the internal coordinate system of the plugin object?

    The aim in the end is certainly to be able to change the insertion point of the plugin object via the object info palette and to have a code as simple as possible to draw the rectangle.

    VvierA

  5. I followed all the tips and everything works fine, except...

    the script converts ONLY the first selected object.

    Strange enough because if I replace the line

    newobjH := CreateCustomObjectPath('custom2dpathobject', objectH, nil);

    by

    SetPenFore(objectH,45);

    the script converts every selected object to a red pen color.

    So it works with a simple change of the pen color but it does not work to convert all selected objects to my custom 2d path object.

    Does anybody have a hint?

    VvierA

    --------------

    PROCEDURE converter;

    VAR

    objectH, newobjH :HANDLE;

    BEGIN

    objectH := FSActLayer;

    WHILE (objectH <> NIL) DO BEGIN

    message((GetType(objectH)));

    IF (GetType(objectH) = 3) OR

    (GetType(objectH) = 4) OR

    (GetType(objectH) = 5) OR

    (GetType(objectH) = 6) OR

    (GetType(objectH) = 21) THEN BEGIN

    newobjH := CreateCustomObjectPath('custom2dpathobject', objectH, nil);

    END;

    objectH := NextSObj(objectH);

    END;

    END;

    run(converter);

  6. Hello,

    again a question for the great members of this forum.

    I already mentioned, that I managed to program a custom space tool.

    It's a custom 2d path object with an 'integrated' symbol.

    Now I was wondering, if it's possible to convert existing polygons or polylines or rectangles to my custom space tool.

    But can't figure out how to do that. It should work like this:

    Select objects, and call the new 'convert tool'.

    I tried something like this:

    BEGIN

    h:=FSActLayer;

    WHILE (h <> NIL) DO BEGIN

    {at this place follows the code that I used to generate the custom space tool}

    END;

    h:=NextSObj(h);

    END;

    And I tried this code as a Menu command and as a Tool and I entered all the parameters that are needed.

    But it doesn't work.

    Problem Nr. 1

    If I use the code as a menu command, I do not now how to access or enter the parameters on runtime.

    Problem Nr. 2

    The code does not generate PIOs. It generates separated symbols and polylines.

    Problem Nr. 3

    The code does not stop. It generates thousands of polylines and symbols of the selected object.

    Maybe anyone has an idea for a better approach?

    Maybe there is a sample script for converting selected objects in PIOs?

    Thank you

    VvierA

  7. Hello,

    we are using Vectorworks Fundamentals and have the following problem:

    We'd like to use 'walls' to draw walls in floor plans and to automatically generate lists with the area of the walls. This works great.

    But when we export the files as dwg or dxf for other experts we'd like to export 'clean' line drawings without the 3d parts of the walls.

    Is there a way to do that in Vectorworks Fundamentals?

    Thanks for Tipps

    VvierA

  8. Hello,

    with the fantastic help of the members of this forum I managed to program a custom made space tool for my special needs.

    Now I am wondering, if there is a way to do the following...

    Is it possible to check, if an element (for example the symbol of a table) is sitting on top of my space polygon?

    If so - I could automatically list the symbols with the information in which room the table is located.

    Any ideas?

    Kind regards

    VvierA

×
×
  • Create New...