
Insert Procedure Call into path with SDK

Armandb
✭
Hello everyone,
Anyone know how to add a procedure call in a path using the SDK RobotStudio?
I think we should use:
Dim callproc As New RsActionInstruction ("", "", "")
with the constructor
public RsActionInstruction( RsTask task, string descriptionName,string instructionTemplateName)
public RsActionInstruction( RsTask task, string descriptionName,string instructionTemplateName)
But I do not know what specifies for the instructionTemplate and the descriptionName.
Best regards,
So i found the solution,
Just use the class
Dim proccall As RsPathCallInstruction
Sample

Dim station As Station = TryCast(Project.ActiveProject, Station)
For Each Path As RsPathProcedure In station.ActiveTask.PathProcedures
Dim listofrsinstruction() As RsInstruction = Path.Instructions.ToArray
For Each InStr As RsInstruction In listofrsinstruction
Dim proccall As New RsPathCallInstruction("Path_20")
Path.Instructions.Add(proccall)
Next
Next
0
Categories
- All Categories
- 5.6K RobotStudio
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 327 IRC5
- 64 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 820 RAPID Programming
- 6 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings