Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use Set NonPrismatic method #1

Open
tamefb opened this issue Aug 3, 2021 · 0 comments
Open

How to use Set NonPrismatic method #1

tamefb opened this issue Aug 3, 2021 · 0 comments

Comments

@tamefb
Copy link

tamefb commented Aug 3, 2021

Hey Daniel
Can you help me, explain how to SetNonPrismatic with the Etab API. I have tried with this code. but just keep getting errors. please help me with this it mean a lot

Sapmodel.PropFrame.SetNonPrismatic("NP1",1,"SEC1","SEC2",1,1,2,1)

Errors:
Traceback (most recent call last):
File "C:\Users\Tam Phan\Desktop\NGHIEN CUU\api\python.py", line 30, in
Sapmodel.PropFrame.SetNonPrismatic("NP1",1,"SEC1","SEC2",1,1,2,1)
File "C:\Users\Tam Phan\AppData\Local\Programs\Python\Python39\lib\site-packages\comtypes_init_.py", line 638, in call_with_inout
v = atyp.from_param(v)
File "C:\Users\Tam Phan\AppData\Local\Programs\Python\Python39\lib\site-packages\comtypes\safearray.py", line 206, in from_param
value = cls.create(value, extra)
File "C:\Users\Tam Phan\AppData\Local\Programs\Python\Python39\lib\site-packages\comtypes\safearray.py", line 127, in create
len(value),
TypeError: object of type 'int' has no len()

Process finished with exit code 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant