几何尺寸与公差论坛

 找回密码
 注册
查看: 669|回复: 0

【转帖】ransforms data

[复制链接]
发表于 2009-4-12 22:41:09 | 显示全部楼层 |阅读模式
transforms data
i have 2 questions.
first:
does the addcomponents call show the new component/part floating on the end of the user's cursor like the way the insert part/assembly command does? if that's true then to the second question. if not, what call would need to be used to allow for this effect?
second:
is it possible while creating a new part file (using vb) to be inserted into an existing assembly, to get the transforms data from the part from within the part file then to pass it back to the assembly file? i have the code for creating the part file on the fly done and working on the code for inserting the file into the existing assy file using the addcomponents call but for me to do this i need the transforms of that one new part that was just created and still loaded. never did transforms before, so does this code below look right for gathering the transforms data?
dim swapp as sldworks.sldworks
dim swmodel as sldworks.modeldoc2
dim swselmgr as sldworks.selectionmgr
dim swcomp as sldworks.component2
dim swxforms as sldworks.mathtransform
dim vxform as variant
set swapp = application.sldworks
set swmodel = swapp.activedoc
set swselmgr = swmodel.selectionmanager
set swcomp = swselmgr.getselectedobject6(1, -1)
set swxforms = swcomp.transform2
set vxform = swxforms.arraydata
cadcam systems analyst
-solidworks office premium 2009 sp3.0
-solidworks simulation premium 2009 sp3.0
-solidworks flow simulation 2009 sp3.0
-2 cpu (fx-62), 2.0 gb of ram
-window xp pro sp2
-nvidia geforce 7950 gx2 (512mb) 6.14.11.6921
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 18:01 , Processed in 0.034798 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表