Skip to content

How to use Set NonPrismatic method #1

Open

Description

@tamefb

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions