Only preasure release

Only preasure release

jokiller70
Advocate Advocate
615 Views
6 Replies
Message 1 of 7

Only preasure release

jokiller70
Advocate
Advocate

I am trying to make a release that allows this element to only have pressure. 

 

Skärmklipp.JPG

Skärmklipp 2017-02-01 11.36.26.pngSkärmklipp 2017-02-01 11.37.35.pngSkärmklipp 2017-02-01 11.37.39.png

 

What am i doing wrong?

0 Likes
Accepted solutions (1)
616 Views
6 Replies
Replies (6)
Message 2 of 7

Artur.Kosakowski
Autodesk Support
Autodesk Support

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.



Artur Kosakowski
0 Likes
Message 3 of 7

jokiller70
Advocate
Advocate

I need to do it by code.

0 Likes
Message 4 of 7

Rafacascudo
Mentor
Mentor
What do you mean "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.

EESignature

0 Likes
Message 5 of 7

jokiller70
Advocate
Advocate

API, vb.net

0 Likes
Message 6 of 7

Rafacascudo
Mentor
Mentor
Wait for Rafal Gaweda , the API guy!!😆

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.

EESignature

Message 7 of 7

marcinrakus
Autodesk
Autodesk
Accepted solution

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);