Many thanks for your answer!!
My full code (the is like this one):
import clr
import math
import sys
import csv
clr.AddReference('C:\Program Files\Autodesk\Autodesk Robot Structural Analysis Professional 2019\System\Exe\Interop.RobotOM.dll')
import RobotOM as rbt
from System import Environment
from RobotOM import *
from System import Object
robapp=rbt.RobotApplicationClass()
struc=robapp.Project.Structure
node=struc.Nodes
bar=struc.Bars
labels=struc.Labels
stress=struc.Results.Bars.Stresses
force=struc.Results.Bars.Forces
sup = IRobotLabel(labels.Create(robapp.IRobotLabelType.I_LT_SUPPORT, 'createdSupport')
supData = IRobotNodeSupportData(sup.Data)
supData.UX = 1
supData.UY = 1
supData.UZ = 1
supData.RX = 1
supData.RY = 1
supData.RZ = 1
labels.Store(sup)
The error:
runfile('G:/WIP/RSAP Python/RSAP_Test.py', wdir='G:/WIP/RSAP Python')
Traceback (most recent call last):
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\lib\site-packages\IPython\core\interactiveshell.py", line 2963, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-2-727407a95006>", line 1, in <module>
runfile('G:/WIP/RSAP Python/RSAP_Test.py', wdir='G:/WIP/RSAP Python')
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
execfile(filename, namespace)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "G:/WIP/RSAP Python/RSAP_Test.py", line 45
supData = IRobotNodeSupportData(sup.Data)
^
SyntaxError: invalid syntax
This is what I get..
Thanks! 🙂