VB.Net control similar to Revision Manager Panel

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Hi all,

I need to do a small application that shows an assembly structure just like Revision Manager does.

This is, using a kind of datagridview with several data columns combined with a treeview in the first column. (see picture attached)

Does anybody know if that is a standard control?

Any information will be welcome!

TIA,

Julian

Julian Guillo
Pixel Sistemas SL
Spain
8 REPLIES

Re: VB.Net control similar to Revision Manager Panel

Experimenter
Experimenter

Hi,

 

I haven't found a control like that yet, but that doesn't mean it doesn't exist. You can however write a simple recursive function that goes through all subassemblies using either SolidEdge or Revision Manager. For my purposes I could get away with only using linked documents for the top aseembly in Revision Manager, but like occurences in SolidEdge, they only go one level deep. (If I'm wrong on this and there is a way around it, please let me know)

 

This is the basic skeleton of the function I use for moving and editing an assembly. If you want to use the Revision Manager API it would look pretty much the same only using linkedDocument insead of occurrences.

 

Public Sub Deconstruct(byVal fileName As String)

Dim assembly as SolidEdgeAssembly.AssemblyDocument = solidApp.Documents.open(fileName)

Dim occurrence As SolidEdgeAssembly.Occurrence

For Each occurrence in assembly.Occurences
if occurrence.type = SolidEdgeFramework.ObjectType.igSubAssembly Then
'Fill your table with necessary data
Deconstruct(Occurence.OccurenceFileName)
Else
'Fill your table with necessary data
End If
Next

End Sub

 

BR

Matic 

Re: VB.Net control similar to Revision Manager Panel

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Hi Matic,

My problem is not to go through the assembly parts (That is the easy part Smiley Happy ).

I was just looking for the .Net control to show the information just like Rev manager does.

Anyway i already found a C# project called "TreeGridView" that is a good starting.

I'm a little stuck doing drag&drop of grid rows because the behaviour is not exactly what a datagridView does but i'm still investigating...

Thanks for all,

Julian Guillo
Pixel Sistemas SL
Spain

Re: VB.Net control similar to Revision Manager Panel

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Julian,

 

I've used ObjectListView in the past. It can be a bit tough to learn and can be flaky depending on what you're trying to do but it's not too bad.

Jason Newell
Applications Architect
www.jasonnewell.net

Re: VB.Net control similar to Revision Manager Panel

Solution Partner Creator Solution Partner Creator
Solution Partner Creator
Thanks Jason,
I'll give a look at this...
Julian Guillo
Pixel Sistemas SL
Spain

Re: VB.Net control similar to Revision Manager Panel

Phenom
Phenom

I have used TreeListView from this Codeplex project in my Pack and Go for Solid Edge which is open source.

 

Though it does not implement the exact heirarchy of the model tree on the control, the control itself is extremely simple to use with most methods similar to those of a ListBox.

 

Here's a preview:

 

01.png

 

Also a tutorial is available on how to build this program from scratch.

 

~Tushar Suradkar

www.SurfAndCode.in

 

Re: VB.Net control similar to Revision Manager Panel

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Thanks a lot Tushar!

Julian Guillo
Pixel Sistemas SL
Spain

Re: VB.Net control similar to Revision Manager Panel

Solution Partner Creator Solution Partner Creator
Solution Partner Creator
Tushar could i get the source code for this? It doesn't seem to be available...
Julian Guillo
Pixel Sistemas SL
Spain

Re: VB.Net control similar to Revision Manager Panel

Phenom
Phenom

Hi Julian,

 

For a limited time the link to the source code is posted on the Solid Edge User's Facebook group, with a view to promote the group.

 

Send me a PM: tushar.suradkar@gmail.com or via this community, I will send the link directly.

 

Tushar Suradkar

www.SurfAndCode.in