Magi Posted May 20, 2022 Share Posted May 20, 2022 Hi All, Since the local authorities require an additional protection zone for each of the existing plant object, I made a Marionette script to help Vectorowrks users. This is attached file: test-J Kowalska_GOOD.vwx . Script works and after wraping it is bahaving correctly - the purpose is to draw an additional circle area of 1,5 m protection zone around each tree. The script is very simple. Is takes the data from the worksheets and draws the additional circle around the center set by the coordinates. The problem is with transferring this marionette wrap to the other files. What is an essential issue here. Here is an example: Drzewa_Spiska_WRONG.vwx Script creates the required elements, neverthless in the WRONG location. Coordinates are corrupted, and the objects are displaced more or less 2x for the both coordinates. I'm not able to fix the problem. Can you help me? Magi test-J Kowalska_GOOD.vwx Drzewa_Spiska_WRONG.vwx Quote Link to comment
Marionette Maven Marissa Farrell Posted May 20, 2022 Marionette Maven Share Posted May 20, 2022 It looks like this is due to using a User Origin in the "Wrong" file. Looking into a solution 🙂 Quote Link to comment
Magi Posted May 20, 2022 Author Share Posted May 20, 2022 The destination files will always use distinct User orgin and Internal Orgin, because of georefercing required in the files. Quote Link to comment
Marionette Maven Marissa Farrell Posted May 20, 2022 Marionette Maven Share Posted May 20, 2022 I've attached a script that doesn't use the worksheet for data, but just queries the individual existing tree objects. Let me know if this is a suitable solution. Drzewa_Spiska_WRONG_MFarrell.vwx Quote Link to comment
Magi Posted May 20, 2022 Author Share Posted May 20, 2022 It doesn't work for me: Quote Link to comment
Magi Posted May 20, 2022 Author Share Posted May 20, 2022 Is there any node to convert string to number? Quote Link to comment
m.graf Posted May 20, 2022 Share Posted May 20, 2022 The Problem is the " , " replace it with " . " and float will work...Drzewa_Spiska_WRONG_MFarrell_MG.vwx Quote Link to comment
Marionette Maven Marissa Farrell Posted May 20, 2022 Marionette Maven Share Posted May 20, 2022 Something is wrong with your network, the value you're getting with the scientific representation means it's not getting the right value... Can you attach that file? There's currently not a direct node that converts strings to a number in the default library because there can be different number formats in strings, for example if a user has feet & inches for their document units then the input will need to be treated differently than a user with meters for their units. Quote Link to comment
Marionette Maven Marissa Farrell Posted May 20, 2022 Marionette Maven Share Posted May 20, 2022 @m.graf - good catch! I hadn't thought of computer localizations. Quote Link to comment
Magi Posted May 23, 2022 Author Share Posted May 23, 2022 Thank you very much, but unfortunetely this is not working. Circles points are moved away... Where is the problem? Quote Link to comment
Magi Posted May 24, 2022 Author Share Posted May 24, 2022 Hi Marissa, Hi M.Graf 🙂 I combined 2 Marionette nets and the result works perfectly. Thank you VERY MUCH!!!! 🙂 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.