could there be a bug in autocad vba coordinates?

could there be a bug in autocad vba coordinates?

stefanveurink68AXD
Advocate Advocate
1,060 Views
1 Reply
Message 1 of 2

could there be a bug in autocad vba coordinates?

stefanveurink68AXD
Advocate
Advocate

I've got some pretty complicated (or better: big) code. 

 

In there's a polyline selected, this goes to another sub, and from there (together with an other polyline) a new polyline is generated wich goes to another sub, in wich individual lines are drawn exactly on that new polyline. 

 

However, in some cases (not all, but allways the same ones when executed multiple times) there's a tiny little difference in the coordinates, in other words, the lines are not exactly on the polyline but slightly next to it (on 1 polyline all at same distance, but other distances when other polylines are used). There doesn't seem to be a real logical explanation for the little change in coordinates, next to that, the angle of the lines is exactly the same as the angle of the polyline. 

 

I remember one time a while ago, when let vba find the intersectionpoint of some complicated block and a polyline, there was quiet a same problem (wich a that time i solved by replacing the block by a line). 

 

Could it be there's a little bug in this vba with autocad? ever heard before of it? It really doesnt seem logic this tiny difference comes from the code so i expect it to happen somewhere where variables are passed or something like that? anyone knows anything about this?

 

I really need to start learning the .net api but that's not solving it for now. maybe when i start a new project. Smiley Very Happy

0 Likes
1,061 Views
1 Reply
Reply (1)
Message 2 of 2

stefanveurink68AXD
Advocate
Advocate

Sorry... could have known this... i was dimming 1 as long, that was the problem... should have known it was my own mistake.

 

You can delete this topic if you like. 

0 Likes