查看单个帖子
旧 2009-04-12, 08:43 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】drawingdoccreaterelativeview

drawingdoc::createrelativeview
hello,
i am trying to use the drawingdoc::createrelativeview function to get a relative to model view. when i do it in the sw i have to select 2 faces that will be the front and the right orientation in the view. .how do i make it in the macro?
i was trying to record a macro and do it and it uses the selectbyid function and uses the xyz position of the face. how can i make it?
thanks,
does anyone knows how to use this function?
i have 2 faces selected like that:
set ent = facearr(facenum)
ent.select4 false, swseldata
but the function isn't working.
set pview = swdraw.createrelativeview(cmodel.getpathname, 0.14, 0.16, 0, 1)
returns pview = nothing...
what can be the problem?
quick
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)