Ch.giacomo
Guest
hi to all, assuming that of ilogic I understand little, I started looking here and managed to do this rule that sets the front view of ipt or iam (function on both) and then makes a rotation in the desired viewcube direction (change the reference number) and sets the home view.
here everything perfect and save a lot of clicks
I wanted to ask for help for an extra bean, I would like to implement the choice of front view with the mouse click on a face, I will explain better:
Now it works like this:
open the view as I want and start the rule that sets the font view and then the home
the function I can't do is:
after opening the file, starting the rule that should ask me to click on a piece face and then the rule does the rest
rule:
here everything perfect and save a lot of clicks
I wanted to ask for help for an extra bean, I would like to implement the choice of front view with the mouse click on a face, I will explain better:
Now it works like this:
open the view as I want and start the rule that sets the font view and then the home
the function I can't do is:
after opening the file, starting the rule that should ask me to click on a piece face and then the rule does the rest
rule:
Code:
'settare vista viewcube su front
dim name1 as string = "appviewcubeviewfrontcmd"
dim odef1 as buttondefinition = thisapplication.commandmanager _
.controldefinitions.item(name1)
odef1.execute
dim ocamera as camera
'rotazione del viewcube
ocamera = thisapplication.activeview.camera
ocamera.vieworientationtype = 10759 'isotopright
ocamera.apply
'settare vista viewcube su home
dim name2 as string = "appviewcubeviewhomefloatingcmd"
dim odef2 as buttondefinition = thisapplication.commandmanager _
.controldefinitions.item(name2)
odef2.execute
'zoom all
thisapplication.activeview.fit
'list of view enums:
' ktopvieworientation = 10754
' krightvieworientation = 10755
' kbackvieworientation = 10756
' kbottomvieworientation = 10757
' kleftvieworientation = 10758
' kisotoprightvieworientation = 10759
' kisotopleftvieworientation = 10760
' kisobottomrightvieworientation = 10761
' kisobottomleftvieworientation = 10762
' kfrontvieworientation = 10764
'list viewcube
'appviewcubecmd
'appviewcubehomecmd
'appviewcubeorthographiccmd
'appviewcubeperspectivecmd
'appviewcubeperspectiveorthocmd
'appviewcubepropertiescmd
'appviewcubeviewfrontcmd
'appviewcubeviewhomefixedcmd
'appviewcubeviewhomefloatingcmd
'appviewcubeviewlockcurrentselectioncmd
'appviewcubeviewresettofrontcmd
'appviewcubeviewtopcmd
'go to home
'call thisapplication.activeview.gohome