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.

prl

#15
Quote from: REF on October 05, 2014, 09:38:10 AM
Maybe a quick fix, have you tried the complement arc icon at the top of the info box?

Ref!   You are a man of few words but sometimes . . . . .  I didn't know that existed.  Who'd thunk.


Edit:  and that works on multiple selected arcs including a mix of circular and elliptical.

Well thanks to REF, the code for complementary arc exists without a whole lot of fuss.  Here is that basiccad program that will cycle the database looking for elliptical arcs with span angles greater than 180 degrees, thereby flipping them.

'Program: FEA.d3m (flip elliptical arc)

'10/5/2014

'cycle database looking for elliptical arc with span angle greater than 180, and set the complement arc

include "dcadalias.d3i"

sys(80)=0

for i = 1 to sys(9)
  Entity i
  Query Ent_Type, etype   
  if etype = 7 Then 'Elliptical Arc
     Query EA_SpanAngle, espan
     if espan >= 180 then Change Ent_Selected, 1
  endif
next i
update

>complementarc
{
}

regen
END

orzel-w

#16
Thanks for all the help, guys. There are a couple of issues with the suggested fixes, however. Some of these are mentioned in my last post. As for the new ideas...

Complementing the arcs: Yes, I've used the arc complement button to repair the reversed arcs (after exploding the symbols in the host drawing). As mentioned in my post above, I don't even have to go through that process if I explode the symbol before saving and closing the host drawing, because the symbol appears correctly when first placed. But the purpose of symbols is so that if you have multiple instances of any symbol in your host drawing, and later wish to revise some feature of the symbol's geometry, you need to revise only the original symbol file, and supposedly all instances of the symbol in your host drawing will update all together. (That's theoretically. So far, that doesn't work either. If I revise the original symbol file, all instances of it in my host drawing remain the same. So, as it stands, I might as well use the place-and-explode approach to bypass the problem in the first place.) The BasicCAD program might come in handy, however. Thanks, prl.

The elliptical/circular arcs problem: The arcs on the ends of the louvers were originally circular arcs. However, I had to scale the geometry after creating it. Whenever I scale any circular arc, the arc changes to an elliptical arc all by itself. Apparently, the separate x and y (and z for 3D) scaling input factors redefine any circular arc in the file records as an elliptical arc with separate "major" and "minor" radii, even if the x and y scaling factors are the same value. There is no "relative" or "constrain proportions" option to select in the scaling factors dialog box, which might keep the arc circular (with a single radius value), so as yet I haven't discovered a way of avoiding the redefining of circular arcs to elliptical when scaling. And, as you can see from my previous post, the really serious symbol files have elliptical arcs intentionally.

Sorry this is turning into a can of worms. I suppose I should just upgrade my DCAD to the latest version. But in my many long years of dealing with software upgrades, you're just trading old issues for new ones, which you have to retrain yourself to work around.

magic

Hi orzel-w,

Quote from: orzel-w on October 05, 2014, 01:53:11 PMBut the purpose of symbols is so that if you have multiple instances of any symbol in your host drawing, and later wish to revise some feature of the symbol's geometry, you need to revise only the original symbol file, and supposedly all instances of the symbol in your host drawing will update all together. (That's theoretically. So far, that doesn't work either. If I revise the original symbol file, all instances of it in my host drawing remain the same.

For this to work you need to check the Load file reference only, when you load the symbol. And this also seems to solve your reversed arc problems.
It's a kind of magic!




orzel-w

Thanks, magic! That may just solve a lot of my problems. Sometimes it's simply a matter of selecting the right options. ;D (I don't suppose there's a simple fix like that for the unintentional circular-to-elliptical arc scaling problem, huh? :-\ Although the file reference fix may render that problem irrelevant.)

samdavo

#19
So magic (or anyone)
When do people recommend symbols, and when blocks.

As I see it, if orzel uses the file link method in several drawings over several years,  then he would have to be careful to change the symbol filename if he changed a detail such as a radius (or some other dimension).

Blocks are (I imagine) more inclined to be constant for a single drawing, without cross-pollinating into other drawings (?)

Not that I use such "central-control-over-several-drawings"  techniques;  or even "central-control-over-several-instances-in-the-same-drawing".
  I personally always explode a symbol as soon as I add it,  ( eg a generic bolt), and then scale it to be anything from M12 to M42 etc. 

But as I have said a few times, my DCAD drawings are usually pretty simple (2 cents).

PS and also, I like to control parts of an assembly based on layers and colours, rather than have things hiding behind a wall of secrecy as provided by a symbol or block status.

magic

Hi Sam,

If a final product consists of parts (spare or otherwise), I would think that the "link method" would be preferable, since you might want to replace a part with another (for example a new or updated flux capacitor for your DeLorean).

I don't use (play with) blocks much myself, I have mostly seen them as a different type of group that was good to have for import and export from and to OttoCAT, but I think that they fulfill a purpose also, when it comes to repeating a part in a single drawing.

We all use DesignCAD in different ways and for different purposes.

To your PS I should write that you can still control parts by layers and colo(u)rs, if you save your symbols as symbols and in layer 0. This way the symbol is loaded into the active layer in the host drawing instead of into the layer it was saved in.
It's a kind of magic!




orzel-w

The choice of symbol versus block is a similar issue to the assembly drawings we made in the company I worked for. If an existing drawing needed modification, we had to decide whether to revise the drawing or make a new drawing. The decision would hinge on whether that drawing may have been used to fill other customers' orders. If the revision applied to only one customer, but there were other customers who had installations covered by the same drawing, then a revised drawing would no longer reflect the correct assembly for all the other customers, so a new drawing for the altered configuration was called for. If, on the other hand, the revision constituted a mandatory changeout for all existing customers, then a revision to the original was appropriate.

As for symbols, it's easier to keep track of their use in multiple places on a single host drawing than on multiple host drawings. But if your situation is such that you have a handle on every place you've used a particular symbol, it would be okay to use symbols in multiple host drawings. I find it more convenient, however, to use them just for multiple locations in a single host drawing, where I may want to make revisions to the symbol geometry before the host drawing is finished.

samdavo

magic and orzel
thanks for those notes.
cheers sam

Rob S

One other big thing about blocks is, they are contained within the main drawing file, so there is no need to keep track of the path for the symbol, and to make sure the symbol file and its relative path always follows the drawing.   I have many drawings now which open with a message "cannot find xx.xxx symbol file, etc.  Had I used blocks, I would not have this problem.

So, as mentioned, blocks are most suitable when a drawing contains numerous instances of a particular object, which may all want to be changed some day, or if all of them were drawn separately, would make the drawing file too large.

The ottocad analogy for symbols are the ubiquitous x-refs, which are used in many cases by designers for multi-tasking purposes, where different x-refs for a master drawing can be worked on by many different people at the same time.

If anyone has ever worked with a large building drawing from some of the major engineering firms, the multi-level x-refs they use are impossible to follow, and frequently crash designcad when trying to import them.
User since forever