Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to make a release that allows this element to only have pressure.
What am i doing wrong?
Solved! Go to Solution.
I am trying to make a release that allows this element to only have pressure.
What am i doing wrong?
Solved! Go to Solution.
Please check:
http://help.autodesk.com/view/RSAPRO/2017/ENU/?guid=GUID-A65C66FB-20DA-4B7C-BFE2-3A7B0CF54F7E
If you find your post answered press the Accept as Solution button please. This will help other users to find solutions much faster. Thank you.
I need to do it by code.
Rafael Medeiros
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.
API, vb.net
Rafael Medeiros
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.
Play along with this code, some parameters probably would need to be adjusted for Your needs, but they should be easy to find now.
RobotApplication r = new RobotApplication(); RobotNonlinearLink nll = r.Project.Structure.Nodes.NonlinearLinks.Create("fun"); if (nll != null) { nll.ModelType = IRobotNonlinearLinkModelType.I_NLMT_FORCE_DISPLACEMENT; nll.SetCurveType(IRobotNonlinearLinkCurveType.I_NLCT_CUSTOM, IRobotNonlinearLinkSemiAxisType.I_NLSAT_POSITIVE); IRobotNonlinearLinkParams nllp = nll.GetParams(IRobotNonlinearLinkSemiAxisType.I_NLSAT_POSITIVE); if (nllp != null) { RobotNonlinearLinkParamsCustom nllpc = nllp as RobotNonlinearLinkParamsCustom; if (nllpc != null) { RobotNonlinearLinkParamsCustomSegment nllps = nllpc.New(); nllps.OriginPoint = 0; nllps.Expression = "0"; nllps.Constant = false; nllpc.Set(1, nllps); nllps = nllpc.New(); nllps.OriginPoint = 1; nllps.Expression = "1"; nllps.Constant = false; nllpc.Set(2, nllps); nll.SetParams(nllpc, IRobotNonlinearLinkSemiAxisType.I_NLSAT_POSITIVE); } } } RobotBarRelease rel = r.Project.Structure.Labels.Create(IRobotLabelType.I_LT_BAR_RELEASE, "testRelease") as RobotBarRelease; RobotBarReleaseData reldata = rel.Data; RobotNonlinearLinkMngr nllm = reldata.StartNode.NonlinearModel; nllm.Set(IRobotDegreeOfFreedom.I_DOF_UX, "fun"); r.Project.Structure.Labels.Store(rel);