Coordinate systems problem

Coordinate systems problem

Anonymous
Not applicable
239 Views
3 Replies
Message 1 of 4

Coordinate systems problem

Anonymous
Not applicable
Hi guies,
I have a problem with coordinate systems. Here it is:
If you have a Block A and it contains a block B in it then how to convert the position of block B into the UCS that I am draing into. I have the position of block B in the coordinate system of the block A and the position of block A into the current UCS but I need it into the coordinate system I insert block A.
It is not difficult to do it with mathematics but I need it with the ObjectARX :-))))).
0 Likes
240 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
I think you must look at this

 

acdbUcs2Wcs(firstPoint, firstPoint,
false);
acdbWcs2Ucs(lastPoint, lastPoint, false);

 

and also at this

 

acdbWcs2Ecs(p1, p1, dNorm, false);

Bernd

 

PS: you can also read the UCS/ECS from an object


 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Hi
guies,
I have a problem with coordinate systems. Here it is:
If you
have a Block A and it contains a block B in it then how to convert the
position of block B into the UCS that I am draing into. I have the position of
block B in the coordinate system of the block A and the position of block A
into the current UCS but I need it into the coordinate system I insert block
A.
It is not difficult to do it with mathematics but I need it with the
ObjectARX :-))))).
0 Likes
Message 3 of 4

Anonymous
Not applicable
Thanks I have already tried it but I have 3 coordinate systems A, B and C. A is implemented in B and B is implemented in C. So I think that these functions you recommend are making transormation of the points only in the Coordinate System-Container.
I think I'll make up with a little bit more mathematics
:-))))))).

Thanks anyway.
0 Likes
Message 4 of 4

Anonymous
Not applicable
I found the decision. Transformation matrixes.
0 Likes