acedTrans Problems

acedTrans Problems

Anonymous
Not applicable
372 Views
0 Replies
Message 1 of 1

acedTrans Problems

Anonymous
Not applicable
My ECS point (ecsPt) keeps comming out with no translation from the UCS
point (pt). It doesn't seem to be converting. Shouldn't it be offset from
the UCS by a distance from the insert of the xref from the origin?

blkRefId is an AcDbObjectId of a AcDbBlockReference, actually an Xref in my
specific case.

resbuf* rbFrom, *rbTo;
es=acdbGetAdsName(ent_name,myIpm.blkRefId);
rbFrom=acutBuildList(RTSHORT,1,RTNONE); // current ucs
rbTo=acutBuildList(RTENAME,ent_name,RTNONE); // entity cs
bTest=acedTrans(asDblArray(pt),rbFrom,rbTo,1,asDblArray(ecsPt));

ecsPt keeps comming out to the same locaion as pt, contrary to what I need.

I need to translate to the ECS, as I need to call getFirstDeriv on a
subentity within the xref.

Any ideas?

Tanks,
MS
0 Likes
373 Views
0 Replies
Replies (0)