Recent Posts

Pages: 1 [2] 3 4 ... 10
General Discussion / Re: Filleting an arc to a line makes the arc disappear
« Last post by Bob P on March 14, 2018, 04:34:27 AM »
I got the fillet function to work by trimming both lines back a bit.
Looking For Help? / Re: macros start at wrong point
« Last post by Lar on March 13, 2018, 08:49:48 PM »
Yea, Rob. I followed Rccon's instructions in his last post and got his results. It seems like Rccon uncovered a bug, but since I hardly ever used >SetStartPoint I can't say if this is somehow the expected result, for those who do use setstartpoint.

What I have deduced is this: when you change the origin of the drawing not everything gets the memo, >SetStartPoint included. So, when you set the start point, it coordinates itself in relation to the original origin. Meanwhile, the commands did get the memo that the origin has changed so they carry out their instructions in relation to the new origin. Hence, the differential. I personally stopped changing my origin because when I export to Cinema 4D to render/animate, Cinema 4D always used the original origin, not the new one. So I guess the exporter don't get the memo either.

The good thing is Rccon's solution is quite simple. Just don't ever change the origin. In fact his problem was caused by him changing the origin. Changing the origin is totally unnecessary as long as >SetStartPoint is there at the beginning of the macro and the commands in the macro has the <pointxyz being set at 0,0,0. If he does have to change the origin for some other purpose, change it back to its original location before running the macro

General Discussion / Re: Filleting an arc to a line makes the arc disappear
« Last post by bdeck on March 13, 2018, 07:25:19 PM »
Hello Adriank,

I can verify that the problem occurs on your sample drawing.

Trimming the red arc to the black line prior to filleting it seems to help in this instance.

I've seen many cases where the wrong end of a line or arc trims off. This is an old bug.

One solution is to construct the fillet, using parallel by distance to first create intersecting centerlines, and then centering a 1m arc on the intersection.

Perhaps your research will lead to a simpler solution.
Your research seems to lead to a simpler solution.

Looking For Help? / Re: macros start at wrong point
« Last post by Rob S on March 13, 2018, 07:16:12 PM »

Using V26 I am able to reproduce his result, using the sample macro as included in the third post above, just remove the opening square bracket, leaving in the >setstartpoint portion.

In a new blank drawing, create a mirrorable object - ie one where you can tell which way it was mirrored, and select it.  Observe the handle location.

Run the macro, which asks for a start point, and upon setting a point, the handle of the Y axis mirrored object is placed at the selected location - ie works as intended

Use the menu command "points, origin", to relocate the origin of the drawing.

Run the macro again, and the mirrored object is placed at a location measured from the new origin, the same distance as the start point is set from the original "cached" origin.

Save, close and re-open the file, and the macro works as intended regardless of the origin location.

Looking For Help? / Re: macros start at wrong point
« Last post by rccon on March 13, 2018, 07:00:12 PM »
I'll try to explain it more clearly. Starting with a new file, I drew a horizontal line and a vertical line, intersecting at point 0,0, the drawing origin, and saved it as macrotest.dcd. Then, using macro record, I made a macro that sets a bullet pointmark at the first point clicked after starting the macro, and saved it as "bullet.d3m". That produced the file attached below.

Then I took these steps:
1. start dcad
2. open macrotest the intersection of the lines to verify it's coordinates are (0,0). They are.
4.activate bullet.d3m.
5. click on a point of the horizontal line to the right of the intersection, producing one of the bullets in the attached screenshot. Just what the macro is supposed to do.
6. repeat #5, just to be sure it still works.
7.choose "point origin"
8. using "point relative", set the origin on the vertical line one unit above the intersection with the horizontal line.
9.activate bullet.d3m
10. click on the horizontal line to the left of the intersection. this produced a bullet point one unit above the horizontal line.
11. repeat, with the same result.

I have done this many times with the same result, with this and other macros that insert a new object. the origin is never changed while the macro is running. the macro inserts the object at the first point clicked after it is activated only if the origin has not been set since dcad was started, and if the origin has been set, the new object is inserted a distance away from the first point clicked equal to the distance from the opening origin to the new origin.

I think I attached a screenshot as clipboard01.jpg to this post, but don't see how to verify that. Can the picture be made to appear with the text? Anyway, I hope this is an adequate explanation of the problem.

  <Color 0,0,0
  <Layer 1
  <PointXYZ 0.000000000000000e+000,0.000000000000000e+000,0.000000000000000e+000
  <Size 1.000000000000000e-001
  <Type 5

Looking For Help? / Re: macros start at wrong point
« Last post by Lar on March 13, 2018, 05:06:47 PM »

You will  have to describe in detail every step you take, or upload a video for us to grasp what is going on.

Eg, how are you setting the origin while the macro is running? I know this can be done with your macro but I would like to hear how you do it. Actually it's more like I would like to know if you do it during the running of the macro or do you do it between macros. Reason I would like to know this is because, like I said above, the start point is only in effect during the running of the macro. Once the macro ends the drawing's origin regains control. So, if you are changing the origin outside of the macro then it has nothing to do with the macro. Even if you are changing the origin during the macro you can only do it before you set the start point so it will still have no effect on the running of the macro.

When you say you set the origin 1 unit higher than previous, do you then run the macro? If you do, the start point will still be where ever you click next. Also, if the mirror then happens 1 unit higher all it means is it is using the drawing's origin. You must have changed the origin, then start the macro and used the regular PointXYZ command to set the start point, thus it would be 1 unit higher than before you set the origin. If you had snapped to an existing point to set the start point, or used the regular Point Relative from an existing point then the mirror would happen in the exact same place.

Another thing I would like to know is are you recording the macro each time you need it or are you reusing the same macro all the time?

Until I understand your process I am at a lost.

Looking For Help? / Re: macros start at wrong point
« Last post by Rob S on March 13, 2018, 11:50:10 AM »
I would say we are closer to understanding the issue!!!

Me only just another user with all kinds of ideas, me not know how to fix anything....

But helping those who know how to fix things in their efforts to understand the issue is a step along the way   :)
Looking For Help? / Re: macros start at wrong point
« Last post by rccon on March 13, 2018, 11:19:42 AM »
Rob, yes, the macro works correctly if the origin has not been set since opening dcad, i.e. it sets the new object at the first point clicked.  In response to your second question, I reset the origin one unit above the initial 0,0 of the session and now the macro sets the new object one unit above the first point clicked (not 2 units). Are we on the way to a solution?
Looking For Help? / Re: macros start at wrong point
« Last post by Rob S on March 13, 2018, 10:26:07 AM »
I vaguely recall an issue posted some time back where the origin of the drawing is cached when it is loaded, and resetting it does not clear this cache, and some operations still find the original setting.

Can you confirm that after closing and reloading the drawing with the reset origin, and/or after closing and reloading Designcad, the operation of your macro works correctly again, until you change the origin again during the current session?

Also, if you offset the origin by a specific distance, does the mirror copy appear at twice that distance away?
Tips and Tricks / Re: Wire frame - Hide - Wire frame
« Last post by Dr PR on March 13, 2018, 09:35:55 AM »
For what it is worth, the CTRL key was the first addition to the normal typewriter keyboard. It appeared on Teletypes back in the 60s. One CTRL key was placed at the left side of the keyboard and was used primarily with the "Q" and "S" keys - because they were close to the CTRL key.

CTRL-Q (DC1 - XON or Device Control 1) and CTRL-S (DC3 - XOFF or Device Control 3) stopped and started a paper tape reader. Later these codes were embedded in ASCII data streams to start/stop whatever the programmer wanted started and stopped.

All keys on the keyboard could be used with the CTRL key. ASCII was just a series of alphanumeric and punctuation characters, so you could embed CTRL key codes in the data stream to cause things to happen at the receiving end of the message. For example, CTRL-G would ring the bell on the machine at the other end of the line to catch the operator's attention.

If you want to know more of this arcane bit of computer history look up:

Personally, I have never found it an inconvenience to use the CTRL or ALT keys. On the other hand, if we didn't have them it would be a major inconvenience!

Pages: 1 [2] 3 4 ... 10