Jump to content

VvierA

Member
  • Posts

    182
  • Joined

  • Last visited

Everything posted by VvierA

  1. Hello, it seems to me, that Vectorworks uses the settings of the "primary unit" for field of a database with type "number" and for example area as unit. Is it possible to change that to the secondary unit? Maybe with a trick or with the help of Vectorscript? Kind regards Vviera
  2. 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?
  3. 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
  4. @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
  5. Thank you for the information. In the german Fundamentals version (i.e. 'Basic') it's apparently missing. And also I didn't find it in the workspace manager. Maybe I should contact my local distributor. VvierA
  6. Hello, I'd like to attach some notes to a symbol. For example, the date of creation or the creator. I don't want to attach a record because the information should be unchangeable and not assigned individually to each instance but permanently to the symbol. Any hints? Thank you VvierA
  7. Thank you. The hint to export a file as Vectorscript is very promising. Not only in this case. But unfortunately it seems, that my Vectorworks Version (2012 Basic i.e Fundamentals) seems to lack the option to export Vectorscript. Or did I miss it? VvierA
  8. Hello, I'd like to convert lines to walls with Vectorscript. Is there a command for that? Thanks for hints VvierA
  9. I tried this, but it doesn't work. I do not now how to move the newly generated group. Thank you VvierA --- procedure door; VAR ObjectH : HANDLE; BEGIN BEGINGROUP; LINE (0.04,0); ARCBYCENTER (0.04,0,0.805,0,90); MOVE (0.805,0); LINE (0.04,0); ENDGROUP; MOVE3D(2,2,0); END; RUN (door);
  10. 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
  11. Ok. I found SetSymbolOptionsN to set some options for the wall breaks. But how can I set the offset (like for a door or window)?
  12. Hello, I'd like to make a custom VS PIO to insert in walls and I'm wondering if there is a way to access the following options: - insertion point (middle axis, left edge or right edge) - offset in relation to insertion point Greetings VvierA
  13. Ok. Great. Thank you. I did this (2 loops, array of handles) and now it works.
  14. 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);
  15. Thank you. I will try that. Do you have a hint how to 'add the custom object to the list of objects though the Vectorscript editor'? I can't find it... VvierA
  16. I mean a Vectorscript 2d path object as a plugin. It's a kind of custom made space tool and it works so far. But it would be great to have the option to use the method 'inner boundaries' (i.e paint bucket) to generate the polygon instead of drawing it point by point. VvierA
  17. Nobody seems to know the answer? Maybe a more general one: Is it generally possible to program mode options with Vectorscript? The mode options that can be changed with the u, i, o keys. VvierA
  18. Hello, does anybody know, if it is possible in Vectorscript to use the method 'inner boundaries (or outer)' in custom 2D path objects? VvierA
  19. Hello Raymond, thank you. That's it, the loop works now. Maybe another idea about how to convert something into a custom 2d path PIO? VvierA
  20. @DWorks Thank you I didn't find the command yet. Do you happen to know the french or german name? Maybe I can find it this way or maybe some other forum member can identify it?
  21. 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
  22. 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
  23. 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...