• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

ilogic rule to set viewcube

  • Thread starter Thread starter Ch.giacomo
  • Start date Start date

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:
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
 
I apologize but having the viewcube always visible and touching the faces according to the desired view or f6 for main view I do not think it is this waste of time. personal opinion
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top