Jump to content

SpacesfromList.vwx 1.0.3

   (2 reviews)

3 Screenshots

About This File

This Marionette Script creates multiple space objects from worksheet data.

A very nice and time saving Marionette script to automate a routine peace of work.

 

Please consider, that the the script takes the area column and calculate the square with that. If you have a language settings with comma instead of points for decimal seperator, the calculation will fail. Use points as decimal character or eliminate decimal places in your list

 

 


What's New in Version 1.0.3   See changelog

Released

This Network gets Data from an external Text (Tab oder character Separated)
A Highlight in this Networks are the following Nodes:

Version 1.0.2
1. Data Mapper
This Nodes is able to easy-configurate in a Dialog Window, which column should be written in wich record field.
"Data Mapper" - Node is very powerful and can handle different kind of records and data input. The number of output values
is matched to the Standard "Set Record Format" it repeats the Values by the number used Fields so the Input of ex. 100 Lines
with 4 columns results in 400 items.


2. Get Field Names
Is able to return Fields of a Record format. So you don't have to manually write Record Format and Field Names

3. The Settings will be saved at the Data Mapper Node. So you don't have to create configuration every time you run the Script

The Script seems to be a little more complex because it can be easy-used with different Type of Files, Also Filters Error Lines out of the Textfile.image.thumb.png.c53bb421f23731514672a8de2b64d1a4.png

Version 1.0.3

Minimal adjustment for 2021 (Input field width was wrong, so with some files the dialoge looked not nice ). Also attached an example Text File. Note: If you use another kind of File (other columns than the example file) you can easily configure mapping with the data mapper Node. 

 

 

Raumprogramm Hasliberg.txt

  • Like 5


User Feedback

Recommended Comments

Please consider, that the the script takes the area column and calculate the square with that. If you have a language settings with comma instead of points for decimal seperator, the calculation will fail. Use points as decimal separator or eliminate decimal places in your list. 

Share this comment


Link to comment

Hi Dom,

 

In 2019, for me the custom name and number of the space is not being copied. Can you suggest what I might be doing wrong?

 

Cheers.

Share this comment


Link to comment

@Diamond 

Same Issue like in many other Scripts which uses the SetRecordField Node. I fixes that (Replaced SetRecordField with the ne 2019 Node)

  • Like 1

Share this comment


Link to comment

@DomC, @Hans-Olav

This looks like a really great tool. A couple of things though:

I have noticed the first space in the list is not created by the marionette script despite having the correct start line no. input. (See screen shot).

Also can this be converted easily into a marionette command and then brought into a workspace? (I am new to marionette...)

 

image.thumb.png.39de637606a518f45d16a4721b4c0c07.png

Share this comment


Link to comment

@Boh

Uploaded a fixed v2018 example similar as the 2019 Version. It does not use the input wrapper. Instead of that it uses a red symbol from a space object.

 

Share this comment


Link to comment

Hi Dom,

 

Thanks for the script! I've modified it for my needs (see attached file) but don't understand where you're pulling your record from. You've set the Record Name to be Space, and the record field names to be Name, 11_Number, and 11_Space Name Cust. Is the Space record internal to Vectorworks? How do I find its corresponding record field names?

 

Thanks!

Create spaces.vwx

Share this comment


Link to comment

Hello
Nice Antonio, great Page 🙂
Alternatively in the new Version 1.0.3. there is a Node "Get Field Names", which can show you the localized and universal names of record fields.

 

image.thumb.png.2e16ffd136cbd471e96bfdd1b3765b8c.png

 

 

 

Share this comment


Link to comment

 Hi @DomC an enhancement request (-:

 

I have used to run "Import adjacencies Matrix" for this functionality inside VW. But its always so much trouble finding the right encoding for CSV to function. (icelandic characters) Now I have tried your marionette and the same is happening. see screenshot.

The new import excel functionality in VW2021 imports the same file flawlessly, and I wonder if its hard for you to modify the script to read from a Worksheet inside the file instead of importing csv? 

Kind regard

Hans-Olav

Uten navn.png

Share this comment


Link to comment
DomC

Posted (edited)

Hi
You could directly connect the xlsx reader instead of csv reader, this works perfectly.

483867189_Bildschirmfoto2021-04-18um22_45_38.thumb.png.f1db872cd754017ca4b6257c39fe91fb.png

I would first try this one because if you have an excel File this would be the direct way (If it works, because text encoding is a real pain). By the way your worksheet for me looks like an encoding issue too 🙂  Maybe not just islandic?

Also the First version v2018, uses a Vectorworks Worksheet for input. This still works and you could just connect the worksheet reader instead xlsx or csv reader. 

735736101_Bildschirmfoto2021-04-18um22_50_37.thumb.png.f21f91d6dd5eb0711b978ff3dcd28d80.png

Edited by DomC
  • Like 1

Share this comment


Link to comment

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.

Guest
Add a comment...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 

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.

×
×
  • Create New...