Autodesk Robot Structural Analysis
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
IRobotNode Compatibil ityDef API Example please
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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?
Re: IRobotNode Compatibil ityDef API Example please
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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_C
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
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
Product Support
Autodesk, Inc.
Re: IRobotNode Compatibil ityDef API Example please
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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?
Re: IRobotNode Compatibil ityDef API Example please
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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)

Rafal Gaweda
Product Support
Autodesk, Inc.
