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.

Imported Files - Recoloring

Started by wisoak, October 21, 2012, 04:27:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wisoak

I just imported a few .dwg & IGES files. I wanted to recolor them, but did not seem to be able to do it in DesignCad 3D V21. Any suggestions?
V24.0

Mark Laing

Maybe turn off 'color by layer'? It's in the color toolbar.

wisoak

Nope, tried it...did not work.

Attached is a drawing that I imported into DC3.
V24.0

Dempsey


  • Select the item you like to change the colour of.
  • Do Ctrl-I, or View --> Info Box. A submenu should pop up.
  • Click on the left button of the top row of buttons and then select the colour you want.
Dempsey

wisoak

Okay, I tried your recommendation, but it still remains an aqua color.

Did you try it with my above attached file and had it work on your DC3?
V24.0

minstrel

#5
Quote from: wisoak on October 22, 2012, 05:20:50 AM
Did you try it with my above attached file and had it work on your DC3?

Hi, tried your file and had no problem changing colors using DCAD22.

Just opened the layer dialogue [L],  clicked onto the color box on layer 2,  assigned new color, then hit 'Apply'.
Closed layer dialogue and the color had changed. 
Minstrel

edit - just tried in version 21 and it worked perfectly....just be sure to hit 'Apply' prior to closing the layers dialogue.  Why the 'info box' approach chokes on this is a mystery.

Lar

#6
Wisoak,

The issue here is 'color by layer', as stated by Mark Laing in the 2nd post. However, his advice of turning off color by layer would only affect entities created after it was turned off. Those created before would remain colored by layer. To turn it off for entities you have to select the entities (you can select more than one at a time), open the info box and disable 'color by layer' near the bottom of the info box. Then you would be able to click the color botton near the top of the info box and select a new color.

Another way to tell that entities are colored by layer is if the entity is a certain color but the color button is gray and clicking it does nothing (of course, the entity can be colored the same shade of gray). Sadly, dcad does not pop up an error message telling you the entity is colored by layer when you click the button. It simply does nothing, which can be very confusing to the uninitiated. It has confused me a good many times, and I consider myself among the initiated.

Minstrel's advice of changing the layer color would change the entity's color since the entity is being colored whatever color is assigned to the layer.

Lar

ps: what is odd about this file in v22 is that the wheel rim is a block but you can't block load another copy of it (the block load command is grayed out). The info box shows that its block name is *X15. If you 'block define' you would see a long list of block names that begin with *.  I assume the asterisk means the file contains the names but there are no blocks to go with them. The file must have been imported with the 'explode blocks' option but why the wheel rim came in as a block is beyond me.

Another odd thing is that in v22 (and a few other versions) when entities with hidden lines are defined as a block the hidden lines appear... but the wheel rim has tons of hidden lines that connect to the holes in the center and they remain hidden. You can see these lines if you explode the block and use the 'show all lines' command in the edit menu (undoing will hide them again).

Another side point is the amount of points and surfaces in this one wheel rim. Duplicating the block would keep the file size low but it would still use lots of ram while the file is in use. Dcad's planes can have many points without triangulation, which would greatly cut down on the number of surfaces in the wheel rim.

wisoak

Thanks LAR & everyone, Turning off the "color by layer" on the detail page did the trick.

Thanks, all.....
V24.0

prl

Quote from: Lar on October 22, 2012, 06:59:08 AM
Another side point is the amount of points and surfaces in this one wheel rim. Duplicating the block would keep the file size low but it would still use lots of ram while the file is in use. Dcad's planes can have many points without triangulation, which would greatly cut down on the number of surfaces in the wheel rim.

Here are a couple of tricks.  AutoCAD solids come into DesignCAD as blocks. To make a DesignCAD solid out of the AutoCAD imported block, explode the block with the infobox and while it is still highlighted, Solid Define it.

Now for the master trick.  Create a dummy 1x1x1 solid off to the side somewhere (but not inside) the new solid.  Now subtract the dummy solid from the newly created solid.  This forces DesignCAD to clean up the solid.  Often times this will reduce the point/faces count from very high numbers to something more normal.

Lar

Neat trick, Pr. However, this wheel rim is such a mess of segments dcad couldn't do too much to help. The wheel started out as 4088 and a lot that seems to be the many other inaccessable blocks in the file. After purging and deleting the tire the file was reduced to 1645, while the cleaned up wheel rim itself was 1073.

Quote from: prl on October 22, 2012, 12:59:44 PM
AutoCAD solids come into DesignCAD as blocks.
Prl, do you think this has something to do with why the wheel rim block can not be loaded with the Block Insert command? (v22)

Lar

Dr PR

wisoak,

You can also open the Layers dialog, select a layer, and then uncheck the "Assign Color" and "Assign Linestyle" options at the bottom of the dialog to purge these layer assignments.

The "Options/Color by Layer" (or Color Toolbox button) and "Options/Line Style by Layer" controls do not purge color and line style information from the drawing, they just hide it. The only way to purge colors and line styles assigned to layers is to do it from the Layers Dialog, one layer at a time. If this is not done, and the drawing is passed to someone else who doesn't have color/linestyle by layer disabled, the problem will resurface and objects will no longer display the colors/materials assigned to them.

This is a personal opinion, but color and linestyle by layer are 2D drawing functions and should be disabled automatically in 3D drawings. The reason is simple - in 3D objects have material properties, and not simple colors. Lines are 2D objects and not 3D objects (however, DesignCAD will display lines in 3D, and this is a good thing). The program should have commands to purge layer color and line style from all layers.

Phil
DesignCAD user since 1987

Lar

Quote from: Dr PR on October 23, 2012, 01:47:13 AM
... one layer at a time   ...
...
The program should have commands to purge layer color and line style from all layers.

Phil

Doc, with the new layer dialog in v22 you can select multiple layers and right click to get the context ,menu. In it you will find, among other stuff, clear highlighted layer color, linestyle and name as well as clear all layers color, linestyle and name.

Lar

Dr PR

Lar,

Thanks. I had forgotten about that. I am so used to having all options visible in the old Layers Dialog that I forget to click on things.

I must admit that I do not like having hidden features. It reminds me of the old (ancient) Adventure computer game. It had no instructions. Figuring out how the program worked was part of the adventure. It is not user friendly.

Phil
DesignCAD user since 1987

Pearco

Lar;

Thanks for the reminder. I must agree with Phil. Even a switch in the corner of the dialog box to call up additional features would be helpful for those of us whose memory decreases on a daily basis. But thanks again.
Jim
User since ProDesign 1.5

prl

#14
Quote from: Lar on October 22, 2012, 02:55:52 PM
Neat trick, Pr. However, this wheel rim is such a mess of segments dcad couldn't do too much to help. The wheel started out as 4088 and a lot that seems to be the many other inaccessable blocks in the file. After purging and deleting the tire the file was reduced to 1645, while the cleaned up wheel rim itself was 1073.

Quote from: prl on October 22, 2012, 12:59:44 PM
AutoCAD solids come into DesignCAD as blocks.
Prl, do you think this has something to do with why the wheel rim block can not be loaded with the Block Insert command? (v22)

Lar

Oops, sorry I missed seeing this Lar.

Hard to say.  The DesignCAD import code turns ACIS solids into DesignCAD blocks. Once in DesignCAD it is hard to tell if the DesignCAD block stems from an ACIS solid or is simply a converted AutoCAD block.  Guess what I'm saying is the wheel may not be a native ACIS solid but rather an AutoCAD block collection of something with many faces. 

I've had good results with the ACIS solid to DesignCAD solid trick, but then again the ACAD solids I deal with aren't really that fancy (walls, roofs, floors, beams).

Edit:  If you want to see how many faces an imported solid has, use the show hidden edges command without actually making any changes.   The trick I mentioned will normally clean up all those triangulated faces into DesignCAD faces.