Papao
Guest
Good morning, have any of you already created a macro that shows/hides the edges of broken views in dft environment?
sub main()
dim objapp as object
dim objdoc as object
dim objview as object
if objapp.documents.count = 0 then
msgbox "nessun documento aperto in solid edge.", vbexclamation, "attenzione"
exit sub
end if
set objdoc = objapp.activedocument
for each objview in objdoc.views
if objview.type = 16 then
objview.visible = not objview.visible
end if
next objview
objview.visible controls the visibility of the entire viewrightly... I added it now, thank you.
Can you help me understand how to do to interrogate the views to "show or hide" the profiles view interrupted section?
I did this but there's something wrong:Code:for each objview in objdoc.views if objview.type = 16 then objview.visible = not objview.visible end if next objview
I gave a quick eye to properties of view but I have not found which controls the visibility or not of the profile; in the sdk are called broken out section and broken out section profileSo what would you use?