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.

Arcs Complementing in Symbols

Started by orzel-w, October 03, 2014, 03:26:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

orzel-w

I'm getting arc complements, only it's not from exporting to pdf or ACAD formats. (This seems to be the cause discussed in earlier postings on the arc complement problem.) It's occurring within native DesignCAD drawings, in geometry loaded as symbols into a host drawing.

I'm running DesignCAD 3D Max v21.2 in 2D mode in Windows 7.

The original files I'm using as symbols are fine when opened separately, but the arcs show up inverted (complemented) when I load the drawing file as a symbol into the host drawing. (The symbol files were all created in v21.1. I just loaded v21.2 to see if it helped, but no dice.) The arcs appear normal when the symbol file is first loaded, but after saving, closing, and re-opening the host drawing, the arcs are inverted. This does not seem to occur with symbol files created from scratch, but only with symbol files that were started with geometry copied from another previous file.

DrollTroll

Can you post an example symbol that demonstrates this behavior? Preferably the symbol file itself, not the symbol already embedded into a host drawing.
25 years with DesignCAD

orzel-w

#2
Here's a simple sample. All the arcs end up flipped in this one.

prl

We are big fans of pictures, files, movies, and $100 dollar bills with detailed descriptions of the problem.  :)

What do you mean by arc ends are flipped up?  Your drawing looks like this when I load it.  What are you expecting it to look like?


orzel-w

The column on the right is the original appearance of the geometry. The column on the left is what happens to it when loaded into another drawing as a symbol.


prl

That is wild.  But the file you provided, even when I open a new blank drawing and symbol load the louvers-5.dcd into it, I don't get that. 

Maybe someone else can try that sequence too, a different main drawing and then loading the louvers-5.dcd as a symbol into it.

orzel-w

I'm finding somewhat inconsistent behavior with this problem. If I load this simple file as a symbol, the arcs complement right away when they first appear. With a symbol containing much more complex geometry, it appears normal when it first loads. The arcs don't misbehave until I save the host drawing, close it, then reopen it.

I have other symbols in the host drawing that are essentially the same as the 5-louver file but with higher louver counts, that all appear normal. The only other thing I can think of that the troublesome symbols have in common is that they were later generational copies of original files, altered for the final version. That is to say, the 5-louver drawing was edited from a copy of a 9-louver drawing, which was edited from a copy of a 15-louver drawing. The 9- and 15-louver versions, as I say, all appear normal in the host drawing. This commonality also seems to be borne out in that the more complex symbol drawing has several different arcs that were created by mirroring arcs from the opposite side of the subject. In the resulting host drawing, the arcs on one side appear normal, while the arcs on the other side (which I believe are the mirrored copies) are complements of the original arcs.

prl

#7
orzel,

For the graphic in reply #4, can you save the left hand side as a different file and post it?  Bizarre (and nice to look at).   I'm interested in doing an entity data dump between it and the louvers-5.dcd file.


samdavo

#8
orzel
FWIW, I can't replicate the complimentary problem (either). V22.1,  Windows 7
I loaded your drawing into a blank drawing (as if it were a symbol), mirrored it.
then saved it, deleted it, reloaded it. 
All good throughout.   

Interesting you have the problem with the third generation 5-louvre-set, but that the 15 and 9 set versions are ok.
Wonder what happens if you make a fourth generation 3-louvre-set?

Certainly it sounds like you could redraw the 5 set version from scratch to get around it. (2 cents) 

(off thread)
Maybe the answer is to try curtains?
(And if it wasn't for louvres and/or venetian blinds, it would be curtains for all of us, yes?)

magic

Hi all,

I can replicate it, if I save the host file and reopen it. It occurs both in DesignCAD 3D MAX v. 21.2 and v. 24.

Quote from: prl on October 04, 2014, 02:46:34 PM
orzel,

For the graphic in reply #4, can you save the left hand side as a different file and post it?  Bizarre (and nice to look at).   I'm interested in doing an entity data dump between it and the louvers-5.dcd file.

I'm attaching the "left hand side" file from v.21.2.
It's a kind of magic!




magic

Hi orzel,

I think it's a problem with the symbol having been created in v. 21.1.

I recreated the symbol from scratch in v. 21.2, and saved it as you had, and I can't replicate the problem with the new symbol in a new host. I'm attaching both.

Please try it out.
It's a kind of magic!




orzel-w

#11
Again, I think it has to do with the number of generations the arcs are removed from the original geometry. It can be seen occurring inconsistently in these more complex symbols, in which some arcs are closer to original geometry than others. I've lost track of how many generations separate these files from the geometry that was created from scratch, but it's probably two or three generations removed. I started from scratch making a three-view orthogonal 2D drawing of the hatch, using mirrored and arrayed copies of some elements. Then I saved each projected view as a separate file for insertion in the host drawing. To generate the oblique view I started with an orthogonal view and scaled it disproportionately to foreshorten it. Then I added elliptical arcs on one side of the drawing, creating some by copying the original arcs to their new locations vertically. Then I made mirror copies to the opposite side of the assembly.





(As I mentioned in an earlier post, these symbol files both appear normal when first inserted in the host drawing. The complement looping doesn't show up until the host drawing is saved, closed, then reopened.)

Something else I just discovered... If I explode the symbol before saving and closing the host drawing file (i.e., while the symbol geometry still looks normal), the arc complementing doesn't occur when the host drawing is reopened.

prl

#12
Quote from: magic on October 04, 2014, 07:21:21 PM
I can replicate it,

I'm attaching the "left hand side" file from v.21.2.

Thanks Magic.

My investigation reveals a couple of issues. 

1.  The original Louvers-5.dcd file by orzel in reply #2 has all the arcs drawn as elliptical arcs.  Elliptical arcs use seven data points to store the arc and apparently different versions of DesignCAD read the sixth and seventh data points backwards from each other.  Those points define the span angle of the elliptical arc.

2.  As Magic demonstrates in his recreated versions in reply #10, the better way to get those arcs is to use DesignCAD circular arcs.  They store fours points for each arc and it appears those four points are read consistently in all DesignCAD versions.

My solution suggestion.

Find your original symbols and replace the DesignCAD elliptical arcs with DesignCAD circular arcs.


Edit: Also maybe Dt can comment on the elliptical arc points issue.  Maybe this flipping of control points was limited to version 21.1.   

prl

#13
I tried an experiment.  With basiccad I can flip the elliptical arc angle to the complement.

If you typically always want the smaller complement (everything less than 180 degrees), I can write a quick program that will cycle the database and flip the spans for span angles greater than 180.  Mind you, basiccad can't get inside of blocks or symbols.

The code corrections: (you need to first read the incorrect span angle and starting angle into the variables, then adjust them using the equations).
First do this: span angle:  SpanAngle = 360 - SpanAngle
Then do this: starting angle: StartAngle = StartAngle -SpanAngle

You can do this also by selecting an elliptical arc and using the infobox to adjust the two fields to the equations above.  Certainly easier letting basiccad do it though.


Better solution is given by REF below in reply #14.

REF

Maybe a quick fix, have you tried the complement arc icon at the top of the info box?
DesignCAD user since 1990