News:

When posting a problem be sure to include which version you are using.  Give as much information as possible.  If the problem is with a specific file be sure to attache it to your post.

Main Menu

Mismatched architecture?

Started by nikkipollard, October 07, 2020, 08:43:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nikkipollard

Dim prof As IMSIGX.Graphic = TCdraw.Graphics.AddLineRectangle(-20, -20, 0, 20, 20, 0)
        Dim gf1 As IMSIGX.Graphic = TCdraw.Graphics.Add("TCW40EXTRUDE", "TCW40EXTRUDE")
        gf1.Properties.Item("Solid").Value = 1
        gf1.Properties.Item("$PIPE").Value = 0
        gf1.Vertices.UseWorldCS = True
        gf1.Vertices.Add(0, 0, 0)
        gf1.Vertices.Add(0, 0, 100)
        TCdraw.Graphics.Remove(prof.Index)
        gf1.Graphics.AddGraphic(gf1, prof)

        gf1.Draw()

working with VB.net
I have IMSIGXMGD as a reference (I usually use IMSIGX24
But I am trying to boolean add in a project.
Looking at the multiadd example posted a long time ago.
As soon as I reference IMSIGXMGD I have problems

But  I am unable to use AddGraphic - which I was using with
"TCW40EXTRUDE"

The MultiAdd example has the same errors. When I try to Run the program Visual Studio says that there is a mismatch in the architectures and that I should consider using matching architectures - I have no idea what that means.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Andy H

Which MultiAdd are you using Nikki. I have 4 different ones .

MultiAdd_MR.
MultiAdd_VbNet
MultiAdd_VBNet1
MultiAdd_VBS

nikkipollard

I haven't been using it - I just wanted to steel the code for the boolean operations. Because admin has deleted all other boolean operation examples.
The one I have looked at was multiadd_vb.net. But I haven't been able to test it yet because I can't create a 3d object with the IMSIGXMGD namespace.
The AddGraphic method seems to be different
And There seems to be an architecture problem with the namespace  (I think it might be a 64 bit version problem)
So I guess I am trying to ask which Namespace should I be using If I want to use the boolean operations.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Andy H

OK.  You are getting a little more advanced that what I've attempted in the past  :)

With the IMSIGXMGD.  I've no idea what that does.  It looks more like a container for the SDK references like IMSIGX and GXEXT.  Looking at the errors in Visual Studio. It isn't loading the refences to IMSIGX.  Which suggests it's only applicable when a tool (make in VB) is put into TC and activated within TC.  At the top of the MultiAdd code, is an Imports statement. Which I think is suppose to automatically reference INSIGX when the tool button is clicked within TC.  But I could easily be wrong.

Imports are not something I've ever done. So you may need to goggle it, to find out how it works, (or doesn't work).

To put objects into TC and do Boolean.  I would think you need the add reference to IMSIGX and also a reference to GXEXT for Boolean operations.

I'll see if I can find a different Boolean example on my computer. I'm sure I have one somewhere.   

nikkipollard

Thanks Andy your help is always appreciated. Kevin Chapman did post something in the Tips section.
But it is dated 2010 when TC was still 32 bit - 
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Andy H

#5
I just did a test on the one I was thinking if, and its from 2009, so it will be 32 bit.

Just for fun. I opened it in VS2019 and tried to run it, but got an error with Interop.gxext  saying something about a newer runtime.  Anyway. I've attached the file. in case you can make any sense of the code.

### Edit ###  I don't know if you have seen this. its the MultiAdd vbs file. which uses GXext for the Boolean.  Although vbs, it will run in the TC macro palette, and works in TC 2019. I just tested it as a macro in TC to see if GXext was faulty, but it works fine. So posting it here in case it helps with Visual Studio.  ### End Edit ###

nikkipollard

Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

nikkipollard

Thanks again the flange example was exactly what I needed.
I don't know if Michael is still active here but thank you for sharing that originally.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h