Jump to content

PatW

Member
  • Content Count

    12
  • Joined

  • Last visited

Community Reputation

6 Neutral

1 Follower

About PatW

  • Rank
    Greenhorn

Personal Information

  • Location
    Germany

Recent Profile Visitors

199 profile views
  1. PatW

    Script to save multiple file versions

    You could look if there es a selector to call the menu command: See:
  2. PatW

    Rename objects

    def vs.Poly(p): return None Poly is not returning tha handle ūüėČ Look for the function LastCreatedObj or similiar to get the handle. Edit: To slow. But one addition if you want to make sure that LNewObj is giving you the right obj you can first execute LNewObj save the handle then create the poly, do LNewObj again and check if the result is not the same as from the first call.
  3. As a test I created a WorldBased and a PageBased Symbol next to each other. When the Design-Layerscale is changed the size relations of the two symbols change as expected. (At some scale Smybol A is bigger at another Symbol B is bigger.) But when this syms are both in the viewport and I changed the Viewport layerscale the whole scene simply gets bigger or smaller and the relations stays the same. So in this case the PageBasedSym is not behaving different. Maybe you meant something else.
  4. But absolute Symbols seem also not to care about ViewPorts. So maybe it will behave the same with the ObjectFlag. Have you tried: vs.SetObjectVariableBoolean(h, index, status)
  5. PatW

    Export text to txt using python

    Hi avictorgm, I would recommend the python functions for file stuff: with open ("file.txt", 'w') as file: file.writeline ("xxx");
  6. If you want to Draw the object in absolut scale (always the same size on the print) you simply need to consider the layer scale: mmVW = absoluteMM * layerScale; To convert the Millimeters in the drawing unit you can use: VS:GetUnits fractionLONGINTApproximate WorldCoords per drawing unit. Use GetPrefReal(150) instead.
  7. PatW

    Dialog control to select textures

    Hi, first build a resource list with "BuildResourceList" then fill the values into an ImagePopUpResource: http://developer.vectorworks.net/index.php/VS:InsertImagePopupResource
  8. PatW

    how to use vs.py in visual studio code

    Hi, I can't tell you exactly how it is done in vs code. But normaly you add the folder which contain the vs.py to the search paths. Then just for intellisense you have to make an import at the files where you want to use vs functions: import vs Or alternatively you can just put the vs.py next to your script.py but the first way is definetely better.
  9. Hi Giovanni, normaly you don't need to declare any file that should go into the vsm. When I remember correct theres also a folder tag that you can use <Folder>MyPythonPackage</Folder>. I never tried to include an external lib into a vsm but you could look for the lib as usual package with py files and include these instead.
  10. Hello, I did many approches to set the text-colour of a static text but nothing happens. How is it done? VWStaticTextCtrl* statusTxContrl = GetStaticTextCtrlByID(klbCurrState); ... // color.SetColor(color.GetRed() ); color.SetColor(10, 5, 0, 100); ... //color.SetBackgroundColor(); //color.SetFrontColor(); statusTxContrl->SetControlText (statusString); statusTxContrl->SetColor(color, false);
  11. PatW

    Is the search in developer.vectorworks.net broken?

    I also use google with the site operator:
  12. PatW

    Explode

    Version 1.1.0

    27 downloads

    This Marionette-Wrapper explodes a group around the origin by a given factor.

 

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.

√ó