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.

Help Wanted (To debug some export issues)

Started by prl, November 23, 2014, 01:58:38 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

samdavo

Minstrel,
howdy :)
very impressive.
I've absolutely no idea how you did that - nor if I did know, when I would have the opportunity or need to use it -
but nonetheless, I'm genuinely impressed.  You clearly understand the merging (twilight zone?) of DCAD and SketchUp to a level that I for one am unlikely to understand in the near future (unless I give up drink maybe).

Were I to bite the bullet and check out SKU, it would be more about Google Earth I suspect, since I (and my sons) are kinda interested in surveying.

WHICH in turn just goes to highlight the fact that each of us approaches the topic of CAD from a different perspective.

cheers m8
sam

prl

#31
What Minstrel is doing with texture wrapping (yes?) would be a neat discussion.

For me, I would love to see us take a common DesignCAD creation and then play "show and tell" with it giving rendering examples in TurboSketch, Twilight, Maxwell, C4D, Blender, etc. . . . .

The topic could be called DesignCAD CAN! Synergy - A visual journey into possibilities

minstrel

Quote from: samdavo on November 25, 2014, 06:05:33 AM
...WHICH in turn just goes to highlight the fact that each of us approaches the topic of CAD from a different perspective.
Ain't that the truth!  Thanks, Sam.

As prl mentions, I used texture 'wrapping/mapping' for dressing his masterpiece.  Unfortunately, these results are difficult to achieve solely within DCAD.  Which explains my expanded toolbox.   

Quote from: prl on November 25, 2014, 06:13:45 AM
... love to see us take a common DesignCAD creation and then play "show and tell" with it giving rendering examples in TurboSketch, Twilight, Maxwell, C4D, Blender, etc. . . . .
The topic could be called DesignCAD CAN! Synergy - A visual journey into possibilities

Make it so, grasshopper! :)  Perhaps there is still hope in coaxing all those talented forum members [currently in hiding] into participation.

John R

Quote from: prl on November 25, 2014, 06:13:45 AM
What Minstrel is doing with texture wrapping (yes?) would be a neat discussion.

For me, I would love to see us take a common DesignCAD creation and then play "show and tell" with it giving rendering examples in TurboSketch, Twilight, Maxwell, C4D, Blender, etc. . . . .

The topic could be called DesignCAD CAN! Synergy - A visual journey into possibilities

How about a common box with an image wrapped to it (TC's UV Mapping tool), then cut it up into puzzle pieces (TC's Slice by Surface tool). Pull it apart, rotate some pieces, then hand it off to some newbie to put back together. ;D

With background — https://www.dropbox.com/s/xifzzavacglqw7y/IMSIDesign%20Puzzle-5.png?dl=0
Without background — https://www.dropbox.com/s/6u3d4bcbgy1mqjt/IMSIDesign%20Products-01.png?dl=0
John R.

prl

#34
John R. reminded me of a sequence I forgot to test, which seems to definitely point at the defects in the DesignCAD dwg/dxf export code.

TurboCAD will directly load a DesignCAD *.dcd drawing.  So using the DesignCAD drawing in reply #2,

1.  Using TurboCAD to load Dc export tests.dcd

2.  Using TurboCAD and not doing anything at all to the file it just loaded, save-as  Dc export Test.dwg

3.  Using SketchUP, load Dc export Tests.dwg file just created by TC.

The skinned over openings are NOT there. So TC's export routine works, DC's export routine doesn't.   We do have a few winding order issues, but those are to be expected.  It is a plane, and hard for most programs to determine which side you want which way.

The TurboCAD file is in the zip file.  Dt, maybe you add the file extensions for TurboCAD files to this forum?   


Dean

Hi Peter,
Using V24
Attached is a simple drawing and a simple test exposing the error.
Think out of the box for a second.
The imported dwg file in Su or Acad displays missing edges. The "skinned over " Plane is the "sum" of an error in the formula so how could the problem be with the plane. A guess would be that after the subtraction there must be "new edges' generated to create the new surface planes. So, is the issue with the Plane or the edges?
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

prl

#36
Quote from: Dean on November 26, 2014, 08:14:27 AM
Attached is a simple drawing and a simple test exposing the error.
Think out of the box for a second.

Dean, in your sample drawing. When you say set handle for the left part of your drawing, did you want me to rotate the blue or both blue and green by 0.01?

Never mind, you mean both, otherwise they both skin over.

And using the DesignCAD to do the solid subtractions, then save the dcd>TurboCAD (export to create dwg)>SketchUP, that works.  Again we have substituted the TC export routine in place of the flawed DC export routine.  Is this what you are showing?

prl

You guys want a challenge?  I was testing my su24x routine.   

prl

The DesignCAD and SketchUp files for the above are in the zip.

Some interesting stats:

1.  The original DesignCAD drawing, export test 5.dcd, has 629 planes.
2.  The drawing created by SU24x has 1705 planes.
3.  The raw drawing pulled into SketchUP has 2349 planes.
4.  The smoothed drawing in SketchUP has 1680 planes.

Dean

Quote from: prl on November 26, 2014, 11:08:37 AM
Quote from: Dean on November 26, 2014, 08:14:27 AM
Attached is a simple drawing and a simple test exposing the error.
Think out of the box for a second.

Dean, in your sample drawing. When you say set handle for the left part of your drawing, did you want me to rotate the blue or both blue and green by 0.01?

Never mind, you mean both, otherwise they both skin over.

And using the DesignCAD to do the solid subtractions, then save the dcd>TurboCAD (export to create dwg)>SketchUP, that works.  Again we have substituted the TC export routine in place of the flawed DC export routine.  Is this what you are showing?

No, Only rotate the blue box then subtract it from the green box. The other ones just subtract the blue box from the green box. Then export the dwg
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

prl

Quote from: Dean on November 26, 2014, 11:39:20 AM
blue box from the green box. Then export the dwg

When only rotating the blue box and then exporting to dwg, I get.

prl

#41
Quote from: Dean on November 26, 2014, 08:14:27 AM
A guess would be that after the subtraction there must be "new edges' generated to create the new surface planes. So, is the issue with the Plane or the edges?

Dean, I decomposed the solid after the subtraction.  There are 10 planes.  DesignCAD doesn't generate extra lonely edges in the sense of SU so I'm not sure what you mean.  The missing lines in the end planes with the holes in them are really there in DesignCAD, they are merely hidden.

Dean

This is how I did it   https://www.dropbox.com/s/7k0vqgkp3thn4gm/export%20dwg.wmv?dl=0

I don't know why yours was showing skinned face.

I exported your "export test5" file into Su and I was seeing skinned faces.
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

prl

Quote from: Dean on November 26, 2014, 12:10:36 PM
I exported your "export test5" file into Su and I was seeing skinned faces.

Yes, the standard DesignCAD export in versions 24 and before will fail.  In version 24, you could take that solid I made and use the solid to surface, and then surface to solid commands to tessellate the solid, then export that.  But it will not preserve the colors.  That is also a problem with using the long way by using TurboCAD.  It too does not preserve the colors, besides the hassle of using TurboCAD merely as a dwg/dxf routine.  TurboCAD is a hog of a program to simply be used for that.  Similar to using a crane to extract a cork from a good bottle of wine.

My routine is a little better in that it preserves the colors and sends it to SU accordingly. 

prl

#44
This routine will confuse most unless you know what I'm doing.  But I'll post it anyway.  In DesignCAD if you take a solid and start punching holes in it, the resulting solid is a collection of simple planes (planes not having openings), and smart planes (planes with internal openings that are defined by those single broken lines with switch-back line segments).

If you select a solid with internal openings, this routine will cycle the solid and select the smart planes allowing you to move them away from the solid so you can at least see the smart planes.  In the graphic, the smart planes are on the right. 

Edit: Oh yes, I failed to make my point.  DesignCAD can easily export simple planes without a problem.  It is the smart planes (the ones with internal openings), that create those skinned over surfaces.    So I don't really need to tessellate the simple planes, only the smart planes.  This routine merely lets me examine the complexity of what DesignCAD has created when doing the various solid adds/subtracts. 

'Program esp.d3m (extract smart planes)
'
'11/26/2014 4:23:23 PM'
'   find smart planes, extract smart planes, smartplanes

include "dcadalias.d3i"

sys(2)=0 'wire frame

dim ent(1000)

maxsel = sys(80)
For j = 1 To maxsel
  Getselect j, ent(j) 'get entity numbers and store in array
Next j

sys(80)=0

for i = maxsel to 1 step - 1
  entity ent(i)
  query Ent_Type, etype
  if etype = 31 then 'a plane
      query Ent_Npts, epoints
      if epoints > 7 then
         getattr i, type, select, laynum, grouporig, rc, gc, bc, solidid
         putattr i, type, 1, laynum, grouporig, rc, gc, bc, 0 'remove solid id
      endif
  endif   
next i
sys(1)=0
regen
End