New to DC: topic for my simple questions to the pros

Re: New to DC: topic for my simple questions to the pros

Postby pibuz » Wed Sep 11, 2019 11:47 am

Hi again! I want to have to possibility to have the Definition Name of a DC to be displayed in the Options Dialog, so that if I rename a DC I have its correct name on the dialog. Is that possible?
0

pibuz 
 

Re: New to DC: topic for my simple questions to the pros

Postby pcmoor » Wed Sep 11, 2019 12:27 pm

The components instance name is already tied to both the attribute and option dialog, this can be updated on the fly. This works if you do not use the name attribute and only after loading the component.
Otherwise the component definition name can be accessed via a ruby script and placed into an attribute value.
0

pcmoor 
 

Re: New to DC: topic for my simple questions to the pros

Postby pibuz » Wed Sep 11, 2019 2:30 pm

Thanks! And what would this ruby script be?
0

pibuz 
 

Re: New to DC: topic for my simple questions to the pros

Postby pcmoor » Wed Sep 11, 2019 11:09 pm

see the link to topic

viewtopic.php?f=289&t=71346
1

pcmoor 
 

Re: New to DC: topic for my simple questions to the pros

Postby pibuz » Fri Sep 13, 2019 9:31 am

thanks Moor!
Sorry, but maybe I misexplained what I need, I'm attaching an example.

In this case I'd like that if I rename the component to whatever else, I get the new name in the Option dialog title. At the moment, this wont' happen: it keeps titling "elemento da prelevare_shell".
0

pibuz 
 

Re: New to DC: topic for my simple questions to the pros

Postby pcmoor » Fri Sep 13, 2019 1:11 pm

you can use the component instance name to give each instance an unique name which is reflected in all the dialog, which is the natural inbuilt way

Capture.jpg



otherwise set
Name = _name
in the DC then
use a button from the toolbar extension to fire the code snippet to alter the _name attribute, which reads the current definition name, updates the original name to update the option dialog

Capture2.JPG
1

pcmoor 
 

Re: New to DC: topic for my simple questions to the pros

Postby pibuz » Fri Sep 13, 2019 1:31 pm

Sorry Moor, I don't understand. In the file I sent you, if I change the Instance name of "elemento da prelevare_shell" NOTHNG CHANGES in any window...
0

pibuz 
 

Re: New to DC: topic for my simple questions to the pros

Postby pcmoor » Fri Sep 13, 2019 1:52 pm

saveas the DC to a folder then bring it into another file, for some reason it does not initially work within its created file, after that, should work, regardless of the number of changes, the references are still maintained
0

pcmoor 
 

Re: New to DC: topic for my simple questions to the pros

Postby pibuz » Fri Sep 13, 2019 1:54 pm

OH BIG THANKS! I WAS MISSING THE FACT THAT IT DOESN'T WOTK ON THE ORIGINAL FILE!
1

pibuz 
 

Re: New to DC: topic for my simple questions to the pros

Postby pibuz » Fri Sep 20, 2019 11:20 am

Hi again! is there a way I can LOCK the rotation of a DC along specific axis'?
I have a panel which I don't want users to be able to use as ceiling, so I only want it to be rotateable along its blue axis
0

pibuz 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Previous


 

Return to Dynamic Components

Who is online

Users browsing this forum: No registered users and 2 guests

Visit our sponsors: