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.4K RobotStudio
- 384 UpFeed
- 15 Tutorials
- 12 RobotApps
- 290 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 241 ScreenMaker
- 2.7K Robot Controller
- 282 IRC5
- 44 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 746 RAPID Programming
- 15 Wizard Easy Programming
- 110 Collaborative Robots
- 3 Job listings