Forum Replies Created
-
AuthorPosts
-
October 12, 2015 at 19:20 in reply to: Migrating multiple objects forward into a single object #1716Gergely FehérKeymaster
Hi, please attach sample objects – both the “old” ones and the “new”. There are so many thing that can go wrong in a migration, that I simply can’t help you without the samples.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterNo, placed objects don’t know anything about each others parameters. You’ll need to write an addon, if you would like to connect placed items.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterHi,
There is no solution in GDL for that: an object does not know anything about previously placed objects.
I think you should use the ID instead, which makes this increasing for you automatically, and you can check the ID from your scripts and draw that from 2d script.Attachments:
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasteridxSkin is the index of the skin to which you would like to get the volume. Unfortunately, this index is a bit tricky, it starts from 0 and must be smaller then WALL_SKINS_NUMBER. You can use the following code to get all skins volume and area from a composite wall:
for i = 1 to WALL_SKINS_NUMBER success = REQUEST ("COMPONENT_VOLUME", i-1, skinVolume) component "volume " + WALL_SKINS_BMAT_NAMES[i][1], skinVolume, "m3" success = REQUEST ("COMPONENT_PROJECTED_AREA", i-1, skinArea) component "area " + WALL_SKINS_BMAT_NAMES[i][1], skinArea, "m2" next i
I hope it helps.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterMaybe there is an easier solution if you add 2 more hidden parameters to your object, for example
shortCode, longCode
and then fill them in the paramscript by the user chosen type:values “type” “Crown A-01”, “Crown A-02”, “Crown A-03” if type = “Crown A-01” then parameters shortCode = “A-01”, longCode = “A-01 Crown” if type = “Crown A-02” then parameters shortCode = “A-02”, longCode = “A-02 Crown” if type = “Crown A-03” then parameters shortCode = “A-03”, longCode = “A-03 Crown”
After you made this, your label could easily ask the values of
shortCode
andlongCode
, and you don’t need to split up strings.Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterHi James,
In your moulding object, how do you select which macro to use? Is there a string parameter for that, and you added a “values” command and a value list in the parameter script?
Anyway, I think I wouldn’t call the macros from a label…Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterI found something, so it seems that I could eliminate the ‘Reply to: ‘ tags from the RSS feed, but I’m not sure that it doesn’t affect any other functions here… Now we give it a try 🙂
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymaster…and now, let’s go, and vote for the best answers! By the way you can rate the post of the Learning and Tips & Tricks sections with five stars… Please try that too.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterHi Roland,
I’m afraid we won’t change the site’s design in the near future. Resolutions may be changed in a longer period – we’ve got this issue on our todo list. Profile access won’t solve the background problem as color overrides does not override anything except the admin pages in our system.Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterThanks for the topic Kristian, I put it on the list. I’m afraid it will take a while before we can release a post about it, as we have limited resources.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterHolger,
Instead of simply pasting a link, please write a short description, to introduce the link, what is it and why do you think it is important for the others. Thanks,
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterKristian, Shaun,
Could you please describe a bit more details about what would you like to read in this new chapter? I think everything is written in the reference guide, so we only wanted to change the structure of the “miscellaneous” chapter, but if there is something really missing, then we should reconsider this.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterThank you for your patience!
The new structure is ready to use. In the future, new categories can be opened, if there is a need for them.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterIs it possible to eliminate this “Reply to:”?
I put it on my list, but I can’t promise anything about that…
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SEGergely FehérKeymasterHi Eric,
We can put your site to the GDL sites section. Please send a mail about your site to gdlcenter@graphisoft.com, give a short description about your site, and send us a logo. As we receive this request, we will handle it soon.
Thanks,
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SE -
AuthorPosts