vismach --import STL

More
19 Jun 2014 18:38 #48120 by ArcEye
Replied by ArcEye on topic vismach --import STL
OK

I will hopefully be able to try it tomorrow

regards

Please Log in or Create an account to join the conversation.

More
21 Jun 2014 18:35 #48163 by ArcEye
Replied by ArcEye on topic vismach --import STL
Hi

There is nothing wrong with your actual component, it is the way you are trying to create it.

BIG rule No 1, the component and the file it is in MUST be the same name.

The file 6hus-gui-1.py has a component name puma560gui inside it.
Not only does this component already exist, in a file of that name, but if you load the file it will hang forever trying to find a component called 6hus-gui-1

The file 6hus-gui-2.py has a component called 6husgui inside it and will fail for the same reasons.

Not so big rule No 2, do not use dashes in component names

You can get away with it in python probably, but it is a good habit to start.
When you write a component that uses C, the compiler can get very confused trying to resolve what it thinks is a subtraction operation with 2 named variables

I rewrote the component name in the 6hus-gui-2.py file, changed the STL file paths, changed the file name to suit and added 6husgui.py to the submakefile

The result built and this is the output rendering when run through halcmd, which presumably is what you intended.




regards
Attachments:

Please Log in or Create an account to join the conversation.

More
21 Jun 2014 18:40 #48164 by ArcEye
Replied by ArcEye on topic vismach --import STL
This is a zip of the files I inserted / changed in src/hal/user-comps/vismach


File Attachment:

File Name: 6hus4.zip
File Size:2 KB



regards
Attachments:

Please Log in or Create an account to join the conversation.

More
23 Jun 2014 09:42 #48193 by tiffany
Replied by tiffany on topic vismach --import STL
Thank you very much~~
I was the first time do sth. about python.

I tried again~ but there is always some errors; I really can load the model and see it;




but if I tried: loadusr -W 6husgui

It cann't be ready.....

so ,I cann't use the component in .INI
Attachments:

Please Log in or Create an account to join the conversation.

More
23 Jun 2014 21:41 #48201 by ArcEye
Replied by ArcEye on topic vismach --import STL

I tried again~ but there is always some errors;


I have shown you can load the component with halcmd and it will display OK.

I don't know what you are doing when you get these errors, without the full configs, I cannot even know if I can help or not

regards

Please Log in or Create an account to join the conversation.

Time to create page: 0.134 seconds
Powered by Kunena Forum