GenericTrackBarControl.dll

GenericTrackBarControl.dll

Anonymous
Not applicable
870 Views
5 Replies
Message 1 of 6

GenericTrackBarControl.dll

Anonymous
Not applicable

Hi,

 

I have seen a demo of Rob Cohee, where he can change parameters with a Trackbar. In the demo i see a piece of code.

 

He starts with

 

Add Reference "GenericTrackBarControl.dll"

 

After i copied the complete code in the iLogic Rule and try to run, i get error message i don't have this dll file.

 

How can i get the dll? Or is there another way to change the parameters with a trackbar?

 

Thanks

 

 

0 Likes
Accepted solutions (1)
871 Views
5 Replies
Replies (5)
Message 2 of 6

MjDeck
Autodesk
Autodesk

Here's a different version which should work about the same.   This is for Inventor 2011.  Let me know if you need a version for 2010.

For 2011, take the file iLogicTrackBar.dll from this .zip file and copy it to

C:\Program Files\Autodesk\Inventor 2011\bin\iLogicAdd

 

Here's a sample rule that uses it:

 

AddReference "iLogicTrackBar.dll"

 localTrigger = iTrigger0
 Parameter.UpdateAfterChange = True

 Using dlg As New iLogicTrackBar.TrackBarDialog
  dlg.Parameter = Parameter
  dlg.ParameterName = "PlateLength"
  dlg.MinValue = 2
  dlg.MaxValue = 8
  dlg.RoundInc = 0.25  
  Dim i As Integer = dlg.ShowDialog()
  If i <> vbOK Then Return
 End Using
 iLogicVb.UpdateWhenDone = True

 The Visual Basic source code is also included in the .zip

 

 

 

AddReference "iLogicTrackBar.dll"
 localTrigger = iTrigger0
 Parameter.UpdateAfterChange = True
 Using dlg As New iLogicTrackBar.TrackBarDialog
  dlg.Parameter = Parameter
  dlg.ParameterName = "PlateLength"
  dlg.MinValue = 2
  dlg.MaxValue = 8
  dlg.RoundInc = 0.25  
  Dim i As Integer = dlg.ShowDialog()
  If i <> vbOK Then Return
 End Using
 iLogicVb.UpdateWhenDone = True

 


Mike Deck
Software Developer
Autodesk, Inc.

Message 3 of 6

Anonymous
Not applicable

Hi, 

 

I am facing problem in handling the dll.

Kindly find the permission error attached. 

Kindly help me on this

regards, Carthik

0 Likes
Message 4 of 6

MjDeck
Autodesk
Autodesk
Accepted solution

Do you have the dll in a shared network directory? That won't work in Inventor 2011. Can you run the dll from a local directory instead?


Mike Deck
Software Developer
Autodesk, Inc.

Message 5 of 6

Anonymous
Not applicable
Thanks, It worked....
0 Likes
Message 6 of 6

Anonymous
Not applicable
Dear Mr.Mike,
Like "ilogicTrackBar.dll", whether it is possible to show JPG or BMP file by ilogic, by giving name and location of the JPG or BMP file to an dll file.
0 Likes