GDL
About building parametric objects with GDL.

Information transfer from one object to another

Nagen
Participant

HI Everyone, 

I need help with transferring the information from one object to another object.

For example:

I have created Object-A,  Object-B, Object-C (just the text with project information).

and there would be some information that will be similar between these objects.

However, I do not want to type same information 3 times to avoid error.

Is there a way so that if I edit the information in one object, the value of other 2 objects changes automatically?

Thanks in advance for help.

 

 

2 REPLIES 2
Barry Kelly
Moderator

Not really.

Objects do not talk to each other.

Just select all objects together at the same time and change the value of the parameter.

All those you have selected will change but should not affect other parameter values you do not change.

 

It can be done if you save the information in an external text file that the object can read, but you must force an update, it is not always automatic.

Another possible way is to use the Project Info and have the objects read that project info field.

You could do the same with a Library Global parameter (Model View Options) but that can get messy as each MVO scheme could have a different value for the parameter, hence the notes might change depending on the MVO saved with the view.

 

Or possibly create a Property that you can associate with a classification.

If the element is classified correctly, you will be able to access the value of that property.

 

Actually another trick similar to selecting all objects, is to use a schedule that lists all of the objects and that parameter field.

I can't remember off hand if you can select multiple objects in a schedule and edit them all at once (you can if you use the show and select on plan /3D option).

But you can select one of the objects in the schedule, change the value of the note field, then copy and paste to other objects in the schedule.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Hi Barry, 

With all the options above, I think saving the information to external text sounds better to me even though I need to force update 

 

Thank you for your quick response, I was trying to solve this for a week and I had no idea that it could read the external text.

 

Thank you once again.