Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Set Material FS very slow
romeograham
Member, csevp Posts: 678 PRO
@MBartlett21 I'm pretty sure this is your great Feature Script
https://cad.onshape.com/documents/3ca261a95938af152088fca8/v/e1a0d34103707be3050748c8/e/82151ac6fb25c86ba23d7f85
It seems to be very very slow in many of my models.
Do you have any idea why this might be? Is there something I should do differently?
Could it be that it hasn't been updated since last year (is the FeatureScript old?).
Thanks!
Romeo
https://cad.onshape.com/documents/3ca261a95938af152088fca8/v/e1a0d34103707be3050748c8/e/82151ac6fb25c86ba23d7f85
It seems to be very very slow in many of my models.
Do you have any idea why this might be? Is there something I should do differently?
Could it be that it hasn't been updated since last year (is the FeatureScript old?).
Thanks!
Romeo
1
Comments
@ilya_baran
Done!
IR for AS/NZS 1100
I think I have discovered why: to the part (parts) there was previously the material PLA (or another) assigned from the Onshape Material Library. Even if the weight is correctly set by the FS and the weight is replaced by assigning a material, "Set Material" does not occur again, even after the material - None - is assigned. Is this correct? If so, How do I get FS "Set Material" active again?
Is it possible to update this to work for Composite Parts? I was playing around and changed the following in your code:
to
This worked for me and allowed me to select my Composite Part, but I imagine this is not robust at all since a composite part could be composed of any number of things that are not Solids. I don't know Feature Script well enough to make this fail proof and root out only the solids in that query.
Thanks.
Yes, your reasoning is correct.
To get it active again, you will have to open the properties dialog and reset all the properties by clicking the button in the bottom left. WARNING: This will also reset properties other than material, such as name, description, appearance and custom properties.
(2)
It should show in the title block.
It won't show if you do a drawing of the Part Studio. It also won't show properly if you set a material, like you found in (1).
IR for AS/NZS 1100
Thank you for your answers. It's clear and the FS works fine now.
My question '2' arose from the coincidental fact that I did indeed missed the material on a drawing of a part studio. You will just see it because normally I make drawings from parts only.
Just a question: isn't it possible to edit the FS 'Set Material' so that it resets only the material property when setting a FS-material? That will make the FS more predictable.