Jump to content

Nested Symbol Name field in a Report


Recommended Posts

Thats exatly what im doing, i don't change the database inside the symbol but the database which is attached to the symbol itself as seen in the attached file. Sorry if it was not clear with my explanation, english is not my first language. 

I want two types of informations in the worksheet, some fields that are attached to objects within the symbol, and then fields from the database that is assigned to the parent of these objects which is a symbol. It is clear that i cant have a symbol with multiple changing datafields itself, thats why i want to assign it to the parent object.

 

The Vectorworks file here: Wohnfläche.vwx

 

This is the area inside the symbol, i need parameters like the area and data from the database "Kenndaten". This is simliar for all instances of this symbol. This shows in the worksheet.

Bildschirmfoto2024-07-01um07_45_36.thumb.png.be403f32343c7d4a29a69d005cc1290f.png

 

This is the parent object (a symbol). It has a database attached with the name "Bau" and i need the field "Gebauede". This changes for every instance of the symbol.

Bildschirmfoto2024-07-01um07_45_26.thumb.png.1dc9838d218d646d2b5b44828a16f2f3.png

 

This is the worksheet. I have the violet area, the class and the name of the parent object. D2 has the runscript with the code i posted above. It should show the data from the parent symbol.

Bildschirmfoto2024-07-01um07_47_22.thumb.png.836933df1c740e2b26f7b471cc365f42.png

Link to comment
15 hours ago, Pat Stanford said:

What is the criteria of the database? It looks like it is not returning the symbol instances that have the Bau record attached.

 

This might be easier if you posted a file with a couple of sample objects for me to look at.

I already posted the file in both of my posts. What can i do that you see them? 

The criteria searches for a specific class (the violet one).

Wohnfläche.vwx

Here a We-Transfer Link to the file, maybe this works: https://we.tl/t-2CH0ch88SC

Edited by Inderfab
Link to comment

I don't think you can do what you want, even using worksheet scripts.

 

The Parent of the rectangle is not the Symbol Instance, but rather the Symbol Definition.  That either has no record attached, or if it has the record attached it will be the same for every instance.

 

You may be able to do some really complex checking of the symbol location and compare that to the symbol instance, but I don't have the time or interest to do the research to figure out how that would work.

 

Sorry.

 

@MullinRJ Do you have or have interest in figuring out how to get a handle to a symbol instance based on information about an object in the symbol definition?

Link to comment

Thanks for trying. Maybe somebody has a better idea how to do it.

We have multiple Houses with in total around 250 apartments. In this phase the typologies are rather abstract and we want to use as many of the same apartments as possible. So we have symbols for the different apartments that are used in these different houses. Therefore we need info about the "inside" of the apartment, how big is the apartment, how many rooms, etc, this is always the same for every apartment with this floorplan. And then we need to know in which house is the apartment. So of course it would be possible to duplicate the symbol for every building. But when you have 10 apartment typologies for multiple buildings you have to make changes in all of the all the time and you have a lot of almost similar symbols. And it needs to be a symbol because the typologies will change and nobody wants to replace hundreds of apartments everytime something changes. 

I think the solution with the database connected to the symbol would be very efficient, but maybe impossible in the end. At the moment the "parent" is the symbol definition, which can be reached, but if it would be possible to reach the individual instance it would be perfect. Or the other way around, data from the inside of a symbol.

Link to comment

You can certainly use a database/worksheet to report on your different units. You just can't base the report on an object inside the symbol and will need to set the criteria to be the Symbol Instance itself.

 

You can probably dig into the symbol definition and find the information on the various parts of the symbol, but again, you will need to start at the Symbol and work to the Definition rather than starting with a part in the definition and working back to the symbol instance on the drawing.

Link to comment
3 hours ago, Pat Stanford said:

You can probably dig into the symbol definition and find the information on the various parts of the symbol, but again, you will need to start at the Symbol and work to the Definition rather than starting with a part in the definition and working back to the symbol instance on the drawing.

I will try it this way, will report if i have a working example. Thank you.

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
Reply to this topic...

×   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.

×
×
  • Create New...