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.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings