createview of object and show my annotation at same time using Onpress in GUI

iamfph
Not applicable
0 Views
3 Replies
Message 1 of 4

createview of object and show my annotation at same time using Onpress in GUI

iamfph
Not applicable

[ FlexSim 20.0.9 ]

I want to create my own user model library so that I can insert my own CAD objects later

For example ,I want to click button inside GUI ,then createview of source1 (in graph1)and show my annotation (in edit1)at the same time.

I know the createview founction [createview(strviewpath[,strobjectfocus,strviewfocus])]

But I don't know how to use it correctly ,because I want the source1(in graph1) can zoom in\ out and rotation .....

Can I createview and show my annotation at the same time?

35766-example.jpguser model lib.fsm

0 Likes
Accepted solutions (1)
1 View
3 Replies
Replies (3)
Message 2 of 4

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

Here's an example which looks at this area in the Tools folder:

35791-1609951114547.png

To launch the GUI we need to set the focus to this folder so use the script showm in the model as:

createview("MODEL:/Tools/GUIs/MyLibraryGUI","MODEL:/Tools/MyLibrary","MODEL:/Tools/MyLibrary")

user-model-lib_jl.fsm

0 Likes
Message 3 of 4

jason_lightfootVL7B4
Autodesk
Autodesk

It uses a list box with the items contained withing the library folder and instead of creating the views for descriptions and 3D it changes the viewfocus of the perspective view and the text of the description. Some refresh code is reused from the flowitem bin gui.


0 Likes
Message 4 of 4

ben_wilson5K2EV
Autodesk
Autodesk

Hi @Fu P, was jason.lightfoot's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes