Inderfab Posted July 1, 2024 Share Posted July 1, 2024 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. 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. 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. Quote Link to comment
Pat Stanford Posted July 1, 2024 Share Posted July 1, 2024 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. Quote Link to comment
Inderfab Posted July 2, 2024 Share Posted July 2, 2024 (edited) 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 July 2, 2024 by Inderfab Quote Link to comment
Pat Stanford Posted July 2, 2024 Share Posted July 2, 2024 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? Quote Link to comment
MullinRJ Posted July 2, 2024 Share Posted July 2, 2024 Hi @Pat Stanford, I will be out for the day, and will look at it when I get back. Like you said, it may not be doable. It sounds like you want info from someone in the Witness Protection Program, without telling everybody where he is. More later. Raymond Quote Link to comment
Inderfab Posted July 2, 2024 Share Posted July 2, 2024 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. Quote Link to comment
Pat Stanford Posted July 3, 2024 Share Posted July 3, 2024 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. Quote Link to comment
Inderfab Posted July 3, 2024 Share Posted July 3, 2024 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. 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.