Robot Structural Analysis Forum
Welcome to Autodesk’s Robot Structural Analysis Forums. Share your knowledge, ask questions, and explore popular Robot Structural Analysis topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IRobotNodeCompatibilityDef API Example please

3 REPLIES 3
Reply
Message 1 of 4
ethor
346 Views, 3 Replies

IRobotNodeCompatibilityDef API Example please

I am trying to create compatibility properties for nodes using the API. I am not sure of how to use IRobotNodeCompatibilityDef. I am able to add the label and define its data but how do you use the  IRobotNodeCompatibilityDef methods to define master and compatibility nodes? Can you please provide a short example?

3 REPLIES 3
Message 2 of 4
Rafal.Gaweda
in reply to: ethor

by CompatibilityDef you can only get \ check compatibility created on model 

 

 

Dim VLabel As RobotLabel
Dim VData As RobotNodeCompatibilityData
Dim Vdef As RobotNodeCompatibilityDef

 

'defining and assigning compatibility

 

Set VLabel = Robapp.Project.Structure.Labels.Create(I_LT_NODE_COMPATIBILITY, "comp")
Set VData = VLabel.Data
VData.UZ = True
Robapp.Project.Structure.Labels.Store VLabel

master_node_number=123

dim Bars as String

Bars = "3 4 5" 'bars list to which "slave" node will ve assigned 

Robapp.Project.Structure.Nodes.CompatibleNodes.Set master_node_number, Bars, "comp"

 

' checking compatibility defined on structure
Set Vdef = Robapp.Project.Structure.Nodes.CompatibleNodes.Get(1)
aaa = Vdef.LabelName  'checking compatibility name \ label used in this compatibility

bbb = Vdef.Bars 'bars list 
ccc = Vdef.Main  'checking compatibility main node number
ddd = Vdef.Compatible ' checking compatible node number

 



Rafal Gaweda
Message 3 of 4
ethor
in reply to: Rafal.Gaweda

Why is it nessicary to have a bars list. What if the nodes i want to "couple" are connected to shell/area elements? Or no elements at all?

Message 4 of 4
Rafal.Gaweda
in reply to: ethor


ethor wrote:

Why is it nessicary to have a bars list. What if the nodes i want to "couple" are connected to shell/area elements? Or no elements at all?

 

Even in Robot itself it is not intended to create compatibility between FEs. If you know the trick you can do it.

You can define compatibility between FEs node and bar it the way that main node will belong to FEs and slave node to selected bar(s)

 

compes.jpg


 



Rafal Gaweda

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report