|
[Sponsors] |
[Other] PROBLEME on ACT APP Builder, SpaceClaim WIZARD |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Miguel Valentin
Join Date: Nov 2022
Posts: 1
Rep Power: 0 ![]() |
HI,
I am coding a wizard for SpaceClaim. And I have a problem. To tell you I have a functional script which when I inject it into SpaceClaim directly works without problem. But when I run it through the wizard. I have 1 error, it changes depending on the .dll I import. I went to see the additional information on .chm but I'm still stuck on that. Here is the python code and the first error : Code:
import System import clr import sys import os import math part = None global part win = Window.ActiveWindow context = win.ActiveContext part = context.ActivePart global part # get selected part if part==None: win = Window.ActiveWindow context = win.ActiveContext part = context.ActivePart.Master body = part.Bodies se = Selection.Create(body) """ <---- the problematic line""" If i add this at the beginning : Code:
clr.AddReference("SpaceClaim.Api.V22") from SpaceClaim.Api.V22 import * If you have the solution, I thank you in advance for taking the time to answer, if not thank you for reading me. Sincerely |
|
![]() |
![]() |
![]() |
Tags |
act extension, namespace#, script error, spaceclaim, wizard |
|
|