DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Material problem with old drawings

Started by Dr PR, May 21, 2015, 09:02:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr PR

I have a 3D house drawing that I started back in the mid 1990s (with the first 3D version of DesignCAD). It has been modified occasionally since then. The last modifications were with V20 five years ago.

I just opened it in V24 and discovered that all of the objects are of the "Aluminum" material. They have the right base colors in wireframe view, but are all gray (Aluminum) in Gouraud shading (with Color Material enabled). They were originally the "General" material in the older versions of DesignCAD.

I went back through several versions using V22 and V15, and found that all had the Aluminum material. Even drawings as far back as a .DW3 file from 1996 had the Aluminum material.

So if you are planning to work with files with a long heritage you might want to disable Color Material in the shading options.

****

Each of the objects has the original base color and the "Aluminum" material color. Does anyone have a suggestion as to how to convert "Aluminum" objects to the "Default" material without losing the base (wireframe) color? In other words, I want the material to be the "Default" material with the original base color.

****

I can do this the hard way. I can convert all 9134 entities with this procedure:

1. Create a new solid with the "Default" material on an unused layer.

2. Use the Color Toolbox Same As "finger" to make the base color of one of the "Aluminum" material objects the working color.

3. Select the new "Default" solid.

4. Click the "A" button in the Color Toolbox to assign the working color to the solid.

5. Select an "Aluminum" material object.

6. Open the Info Box.

7. Use the Info Box Same As "finger" to click on the new "Default" material solid to assign the "Default" material and the original base color to the "Aluminum" object.

8. Go to 2 above and repeat until all "Aluminum" objects have been converted to the "Default" material.

****

The Info Box can be pinned open to save step 6 for all but the first iteration.

In step 5 I can use the Selection Filter to select all "Aluminum" objects with a common base color and then convert them all to the "Default" material with that desired base color.

****

It would be nice to have an automated way to do this since I probably am not the only one who still has useful old files around.

****

It would be even better if DesignCAD would automatically convert the "General" material to the newer "Default" material - maintaining the original base color - when a file is opened.

Phil
DesignCAD user since 1987

samdavo

Quote from: Dr PR on May 21, 2015, 09:02:02 AM
I can do this the hard way. I can convert all 9134 entities with this procedure:

1. Create a new solid with the "Default" material on an unused layer.

2. Use the Color Toolbox Same As "finger" to make the base color of one of the "Aluminum" material objects the working color.

3. Select the new "Default" solid.

4. Click the "A" button in the Color Toolbox to assign the working color to the solid.

5. Select an "Aluminum" material object.

6. Open the Info Box.

7. Use the Info Box Same As "finger" to click on the new "Default" material solid to assign the "Default" material and the original base color to the "Aluminum" object.

8. Go to 2 above and repeat until all "Aluminum" objects have been converted to the "Default" material.

***

The Info Box can be pinned open to save step 6 for all but the first iteration.

In step 5 I can use the Selection Filter to select all "Aluminum" objects with a common base color and then convert them all to the "Default" material with that desired base color.

****

It would be nice to have an automated way to do this since I probably am not the only one who still has useful old files around.

****

It would be even better if DesignCAD would automatically convert the "General" material to the newer "Default" material - maintaining the original base color - when a file is opened.

Phil
Phil
A great summary of how to de-aluminium an object /set of objects :)
Since the experts are silent, I assume that quick automations (or macros etc) are out there in the future somewhere.
cheers

DrollTroll

Unfortunately, differences between the material indexing conventions between older and newer versions sometimes make it impossible to tell if an entity was "no material" or "General" or "Aluminum". Lacking any specific information, the default assumption is Aluminum (material index 0).

The attached macro should do the trick for you -- it changes any entity whose material name is "Aluminum" to material name "Default", but doesn't change the entity's base color. Unfortunately there's no automatic way to determine if the entity *should* be Aluminum -- those get changed too. It would be fairly straightforward to modify it to work only on selected entities, or on entities that are Aluminum but don't match certain colors.
25 years with DesignCAD

Dr PR

DT,

Thanks.

I'm not familiar with "No Material." Was that a material option?

In all of my old 3D drawings I do not recall ever assigning a material. The default material was "General." However, it is possible that someone might have both "General" and "Aluminum" material in a drawing.

It seems to me that the newer "Default" material is essentially the same as the older "General" material, so it makes more sense to change "General" to "Default" rather than "Aluminum.

It seems to me to be a bad choice to change the "General" material to the "Aluminum" material because that eliminates the distinction between the two and the original drawings made a distinction.

Likewise, it is a bad choice to change "No Material" to "Aluminum" since the original drawing did not call for the "Aluminum" material.

Seems to me it would much wiser to change both "General" and "No Material" to the new "Default" material.

Phil
DesignCAD user since 1987

DrollTroll

Yes, it would be a "better" choice; unfortunately, I'm not sure it's possible any longer to determine categorically which material (Aluminum or General/Default) was actually intended when loading those older drawings. I don't know exactly when the change occurred that caused this ambiguity-- possibly as early as DesignCAD 97, or even DesignCAD for Windows 95.

When I get some time I'll try to look into it, but for now we have bigger issues to resolve.
25 years with DesignCAD

DrollTroll

Also, by "no material" I meant that no material was specifically applied to the entity (possible with lines, curves, circles, etc. in some versions).
25 years with DesignCAD