几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】block with attribut transformation (http://www.dimcax.com/hust/showthread.php?t=15247)

yang686526 2009-05-04 04:52 PM

【转帖】block with attribut transformation
 
block with attribut transformation ...
block with attribut transformation ...
to modify some block with attribut i must change the scales factors.
when i try that :
with a unique factor, it's work fine :
l_pblockreference->transformby(odgematrix3d::scaling(2.0, l_pblockreference->position()));
but with no egal x,y z factors the transformation don't work :
l_pblockreference->transformby(odgematrix3d::scaling(odgescale3d(2.0 ,1.0,1.0), l_pblockreference->position()));
no transformation
is it normal?
thank
thierry
oddbblockreference::transformby() can be used only with uniscaleortho matrix. this is because attributes can't be scaled non-uniformly.
you can use:
code:
oddbblockreferenceptr newblkref = pblkref->gettransformedcopy(transform);
pblkref->handoverto(newblkref);
sergey slezkin
thank
thank you, it's work fine with this.
oddbentityptr l_newblkref;
odresult l_res = l_pblockreference->gettransformedcopy(l_transform,l_newblkref);
l_pblockreference->handoverto(l_newblkref);
regards
thierry


所有的时间均为北京时间。 现在的时间是 06:27 PM.