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

“JLTransform”,How do you use it? #94

Open
HGQ21102 opened this issue Apr 6, 2023 · 3 comments
Open

“JLTransform”,How do you use it? #94

HGQ21102 opened this issue Apr 6, 2023 · 3 comments

Comments

@HGQ21102
Copy link

HGQ21102 commented Apr 6, 2023

“JLTransform”,How do you use it?

@adama2000
Copy link
Contributor

adama2000 commented Apr 7, 2023 via email

@HGQ21102
Copy link
Author

HGQ21102 commented Apr 7, 2023

Sorry, my English is not good. Can you give me an example?Current universal translation software

@0781532
Copy link

0781532 commented Jun 13, 2023

I got the same problem when I want to transform a component after assembling to an .asm.

I tried to write code to conduct this work but not succeed.

Could you please deliver a example for this function (file_assemble or file_get_transform)

Thank you!
L

What I did:


request_data = {
"sessionId": "sessionId",
"command": "file",
"function": "assemble",
"data": {
"file": "adl_1744_50x25_4a.prt",
"into_asm": "a2.asm",
"transform": [ 54, 23, 45 ],

    }
}

out1 = c.file_assemble("adl_1744_50x25_4a.prt", into_asm="A2.asm", transform = list(request_data['data']['transform']) )

and


{'featlist': [{'name': 'adl_1744_50x25_4a.prt', 'type': 'csys', 'feat_id': 4, 'path': [{54, 23, 45}]}]}
f=c.feature_user_select_csys()
print (c.file_get_transform(csys=f['featlist'][0]))

RuntimeError: Invalid input data: [54, 23, 45]

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

3 participants