Message 1 of 1
acedTrans Problems

Not applicable
06-30-2003
07:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
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