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:Ā 

Create a gap (Settlement) of supports through VBA

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Anonymous
496 Views, 3 Replies

Create a gap (Settlement) of supports through VBA

I have modeled the basement with another program and I need to transfer the movements from the basement to the superstructure.

The superstructure model is in ROBOT. 

I collect the  reactions from Robot I impose them in the basement model as loads I run the basement model and then I collect the movement of the basement and I apply the movement as gap at the support.

Here is the code I use. 

 

Set Label = robapp.Project.Structure.Labels.Create(I_LT_SUPPORT, "Support")
Set SupportData = Label.Data
SupportData.UX = .1154

SupportData.UY = .21

SupportData.UZ = .32

 

the code doesnt have a bug or anything like that but it doesnt work it doesnt create the gaps that I want in all x,y, z directions. 

 

Does anyone know how to impose the movements through VBA at the supports?

 

Thanks in advance 

Manos

3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

The numbers are just random by the way in reality they are quite small

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

Only as nonlinear function:

d1, k1,k2 should be correctly set

 

Dim Label As RobotLabel
Dim NSD As RobotNodeSupportData
Dim NLM As RobotNonlinearLinkMngr
Dim NL As RobotNonlinearLink

Set NL = RobApp.Project.Structure.Nodes.NonlinearLinks.Create("NonlinModel")

NL.ModelType = I_NLMT_FORCE_DISPLACEMENT
NL.SetCurveType I_NLCT_B_LINEAR

Dim ANL As RobotNonlinearLinkParamsBLinear
Set ANL = NL.GetParams
ANL.d1 = 50
ANL.K1 = 200
ANL.K2 = 0

NL.SetParams ANL

Set Label = RobApp.Project.Structure.Labels.Create(I_LT_SUPPORT, "NONLIN")
Set NSD = Label.Data
Set NLM = NSD.NonlinearModel
NLM.Set I_DOF_UX, "NonlinModel"

RobApp.Project.Structure.Labels.Store Label


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

Rafal thanks I will try it and ask further questions in case I have 

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

Post to forums  

Autodesk Design & Make Report