CHANGE NATIVE MODEL ROLE ADVANCE STEEL

CHANGE NATIVE MODEL ROLE ADVANCE STEEL

fredgneto
Contributor Contributor
713 Views
6 Replies
Message 1 of 7

CHANGE NATIVE MODEL ROLE ADVANCE STEEL

fredgneto
Contributor
Contributor

Hi Everyone!

I'm trying to make some activities more automatizatedes, like the objects going to their layer based on their model roles. But, i'll need to change it in depth (i think) at the origin of the macro. Is it Possible? There is a way to change it, to the object always keep in my ouwn model role ? So, always that i use the changed macro, it will use my selected Model Role.

0 Likes
Accepted solutions (4)
714 Views
6 Replies
Replies (6)
Message 2 of 7

AleckGiles
Mentor
Mentor
Accepted solution

Hi,

 

No, I'm afraid it is not possible to change the role assigned to objects by any of the macros. One or two macros have a model role option (e.g. the Bracing macro) but choosing a setting there is too late for the automatic layer assignment to work.

Aleck Giles, Structures Consultant, Graitec
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

LinkedIn

Autodesk Certified Instructor - Gold

Message 3 of 7

fredgneto
Contributor
Contributor
Thank you so Much! Even if it's not possible, i'm glad to get that answer.
0 Likes
Message 4 of 7

Sebastian_Eiche
Mentor
Mentor
Accepted solution

Hmm I would say it is possible. 
But you need time to create it.
Here are the steps:

  • in the Management Tools open the Table editor, then all databases and filter for "layer":
    Sebastian_Eiche_0-1638949249744.png

     

  • As you see, you will find the ObjectLayerAssignment
  • here you could define which modelrole should use a specific Layer
  • this could be defined extra for different objecttypes and for sure the Layer had to exist in the DWG
  • So you had to add here: new lines with your modelroles you want to define and set their specific layer
    Sebastian_Eiche_1-1638949576560.png

     

  • and the next step should be to open the template and add the layer you want too.

This will maybe need time to create, but I think it should work. By creating the layer in the template, I would also suggest to create some layer groups for easier handling


Sebastian Eiche
Application Engineer @Mensch und Maschine acadGraph

EESignature

If this information was helpful, please use the Accept as Solution function, this make it easier for other users

Message 5 of 7

AleckGiles
Mentor
Mentor
Accepted solution

Hi,

 

@Sebastian_Eiche I absolutely agree that you can do what you describe. I read the question that @fredgneto knew that part already and was asking if he could change the model role assigned to an object at creation. For example, get the Portal Frame macro to assign a model role of "Roof Beam" instead of "Rafter" or whatever. I don't believe that is possible. If it is, I would love to learn how too 😊.

 

@fredgneto You can certainly assign objects to different layers based on the model role they are given when created as per Sebastian's description above.

Aleck Giles, Structures Consultant, Graitec
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

LinkedIn

Autodesk Certified Instructor - Gold

Message 6 of 7

Sebastian_Eiche
Mentor
Mentor
Accepted solution

you're right. I misread it maybe 😃


Sebastian Eiche
Application Engineer @Mensch und Maschine acadGraph

EESignature

If this information was helpful, please use the Accept as Solution function, this make it easier for other users

Message 7 of 7

fredgneto
Contributor
Contributor

@AleckGiles and @Sebastian_Eiche . 

I'm grateful for the help they both gave me. After I got the first response to the impossibility of doing exactly what I wanted, I realized I was going down a bad path. What I did was adapt!

I actually created new lines so that the template functions would fall into the layer I wanted. But, for example, if the Macro doesn't create with the template function I want, no problem! I force the random model function it gives me to fall into the layer I want. Great, when creating, so it will be on the desired layer. Then, already in the correct layer, just change the object model function before replicating the Macro. This forces the creation the way I want and allows later, to place the object in the model function that I wanted.

0 Likes