News:

When replying to a specific statement be sure to quote the previous post.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

global material deletion

Started by Andy H, March 19, 2017, 01:25:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andy H

Anyone know of a quick method for global deletion of materials - if I bring in an old file into 2016 RedSDK,  obviously the materials won't match (error message saying no RedSDK material) that's fine, but I can't find a quick method of deleting all associated materials because materials on things like walls / windows / doors / groups won't delete as a single command like I can with normal ACIS objects..

I've tried, - Deleting everything in the active drawing area, and copy / pasting in a new file, Selecting all - set material to none. what I need is a button to delete all materials no matter where they are even within groups (without having to explode everything or group edit) - any ideas.


Jeff_in_90620

That would be nearly impossible, as I understand it.  Individual facets are immune to object-based changes and you can't enter Facet Edit mode with multiple objects.

Perhaps a script that would, in sequence, select every object and remove Material selection from the object and also from the facets.

I certainly don't know how to do that.


Jeff

Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

Darrel Durose

Would saving out some/all of the objects help you as a ASAT - ACIS format, closing, and reopening clears out all materials?
Daz...
V2020 & V2022 Plat 64bit, Lenovo P72 Laptop, Window 10 Pro for Workstations, Intel Xeon E-2186 CPU @ 2.90 Ghz (6 cores/12 threads), 64GB RAM, Nvidia P5200 c/w Max=Q Design GPU, Display UHD 3840x2160 pixels
TurboCAD user since V3 and Turbocad 3D V1.

Andy H

Quote from: Darrel Durose on March 20, 2017, 03:06:04 PM
Would saving out some/all of the objects help you as a ASAT - ACIS format, closing, and reopening clears out all materials?

Thanks Darrel,  works fine for ACIS, but obviously walls windows and doors still has to be done manually.

Quote from: Jeffin90620 on March 20, 2017, 02:34:00 PM
That would be nearly impossible, as I understand it.  Individual facets are immune to object-based changes and you can't enter Facet Edit mode with multiple objects.

Perhaps a script that would, in sequence, select every object and remove Material selection from the object and also from the facets.


Thanks Jeff,   it shouldn't really be difficult for IMSI, as one can already isolate certain things in 'Extract from' so another simple option added there like a checkbox where, 'If material <> none then material = none' but I doubt they will want to do it just for me  :)

A script could work, though I've never really tried Ruby,  may try learn a bit sometime this year..

Darrel Durose

Quote from: Andy H on March 20, 2017, 03:49:35 PM
Quote from: Darrel Durose on March 20, 2017, 03:06:04 PM
Would saving out some/all of the objects help you as a ASAT - ACIS format, closing, and reopening clears out all materials?

Thanks Darrel,  works fine for ACIS, but obviously walls windows and doors still has to be done manually.

Quote from: Jeffin90620 on March 20, 2017, 02:34:00 PM
That would be nearly impossible, as I understand it.  Individual facets are immune to object-based changes and you can't enter Facet Edit mode with multiple objects.

Perhaps a script that would, in sequence, select every object and remove Material selection from the object and also from the facets.


Thanks Jeff,   it shouldn't really be difficult for IMSI, as one can already isolate certain things in 'Extract from' so another simple option added there like a checkbox where, 'If material <> none then material = none' but I doubt they will want to do it just for me  :)

A script could work, though I've never really tried Ruby,  may try learn a bit sometime this year..

By Manually you mean in the Render Manager/Delete Material?
Daz...
V2020 & V2022 Plat 64bit, Lenovo P72 Laptop, Window 10 Pro for Workstations, Intel Xeon E-2186 CPU @ 2.90 Ghz (6 cores/12 threads), 64GB RAM, Nvidia P5200 c/w Max=Q Design GPU, Display UHD 3840x2160 pixels
TurboCAD user since V3 and Turbocad 3D V1.

Andy H

Quote from: Darrel Durose on March 20, 2017, 03:52:33 PM
By Manually you mean in the Render Manager/Delete Material?

No Darrel, that didn't work for me.

I had to use selection properties to open wall properties, then window properties then door properties, to change the material for all the different components (glass, frame etc.). not particularly difficult as I only had to change one window style to change all of them. but would be nice to have a single button to wipe every material off all objects no matter what they are.

Darrel Durose

When you say it didn't work?
Have an object/s selected that has a material you are trying to delete applied to it? We cannot delete the material in a selected condition.  De-select and i can delete the material/s?

I can anyway in TC2016.
Daz...
V2020 & V2022 Plat 64bit, Lenovo P72 Laptop, Window 10 Pro for Workstations, Intel Xeon E-2186 CPU @ 2.90 Ghz (6 cores/12 threads), 64GB RAM, Nvidia P5200 c/w Max=Q Design GPU, Display UHD 3840x2160 pixels
TurboCAD user since V3 and Turbocad 3D V1.

Andy H

My apologies Darrel, I didn't explain properly, I typed one thing but was thinking of something else, (it's a bit late (early 'am' in the UK)).

By didn't work I meant it didn't delete the material description from the object - for example wood on the window frame, I can delete the material from the render manager, but the material description remains on the object (for me anyway), so I either live with the no RedSDK warnings until I get round to changing the materials, or turn the warning off and turn back on afterwards so I don't forget materials in other files.

Anyway, I'll get distracted from this for a while, TC2017 has just arrived (via download), so think I will install that in the morning and have a play with that and see what's new.   

John R

re: …have a play with that and see what's new.   

You should have a "New Tools" toolbar(s) available to get you started.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

Darrel Durose

#9
Quote from: Andy H on March 20, 2017, 06:18:39 PM
My apologies Darrel, I didn't explain properly, I typed one thing but was thinking of something else, (it's a bit late (early 'am' in the UK)).

By didn't work I meant it didn't delete the material description from the object - for example wood on the window frame, I can delete the material from the render manager, but the material description remains on the object (for me anyway) , so I either live with the no RedSDK warnings until I get round to changing the materials, or turn the warning off and turn back on afterwards so I don't forget materials in other files.

Anyway, I'll get distracted from this for a while, TC2017 has just arrived (via download), so think I will install that in the morning and have a play with that and see what's new.


Is this not due to their being the Lightworks Shader material of the same name being applied to it still?
Daz...
V2020 & V2022 Plat 64bit, Lenovo P72 Laptop, Window 10 Pro for Workstations, Intel Xeon E-2186 CPU @ 2.90 Ghz (6 cores/12 threads), 64GB RAM, Nvidia P5200 c/w Max=Q Design GPU, Display UHD 3840x2160 pixels
TurboCAD user since V3 and Turbocad 3D V1.

Andy H

Quote from: Darrel Durose on March 21, 2017, 01:54:28 AM
Is this not due to their being the Lightworks Shader material of the same name being applied to it still?

Yes Darrel, its all these I'd like to delete in one go.

Quote from: John R on March 20, 2017, 08:33:11 PM
re: …have a play with that and see what's new.   

You should have a "New Tools" toolbar(s) available to get you started.
Thanks for the tip John, I wouldn't have looked there for new things.