ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

acdbEcs2Wcs(..) function

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
luciano51
698 Views, 5 Replies

acdbEcs2Wcs(..) function

Hello! I never used this function indeed! I normally prefer to roughly set  the Ocs through the command UCS object an then to perform

a acdbUcs2Wcs() function (I now this method is deprecated for object enablers)

Nevertheless I have a curiosity about this function and I wonder if somebody could give me a suggetsion to use it properly.

So, the input parameters for this function are: a point (or a vector) and the normal vector of the planar entity.

I'm rather puzzled indeed... This means, for example,  that two circles, having the same normal, have the same Ocs! In this way the result

of translation will be the same for both circles even if they have different centers....

In other words: how can a coordinate system be determined by the Z axis direction only?

 

 

 

5 REPLIES 5
Message 2 of 6
owenwengerd
in reply to: luciano51

Search for Arbitrary Axis Algorithm. I think that is what you're looking for.

--
Owen Wengerd
ManuSoft
Message 3 of 6
luciano51
in reply to: owenwengerd

Thank you Owen! A very challenging matter! But..do you agree with me that this function,  as it is now, is totally useless?

I think is better to implement for my purposes an overloaded function, performing a more complete calculation of the

transforming matrix through the AA algorithm.

On the other hand I found the getEcs(...) method very disappointing....

 

Do you agree with this solution?

 

Thanks a lot.

Luciano

 

Message 4 of 6
owenwengerd
in reply to: luciano51

I don't think the function is totally useless. Transforming vectors is independent of position, so your argument only applies when translating points. I think it's fair to say that the function has limited applications.

--
Owen Wengerd
ManuSoft
Message 5 of 6
luciano51
in reply to: owenwengerd

You are right, Owen. Programmers are always a bit selfish...Smiley Happy

Taking advantage of your kindness I have another question: is there a way in ObjArx to modify the UCS position without using the UCS command?

 

Thank you very much.

Luciano

Message 6 of 6
owenwengerd
in reply to: luciano51

I believe Art Cooney has in the past posted code to set the current UCS without using commands. However, I suspect that doing so is a bad idea for your purposes.

--
Owen Wengerd
ManuSoft

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost