question

Pedro Ortelani avatar image
1 Like"
Pedro Ortelani asked Phil BoBo answered

Module SDK - FlexSimObject DragConnections

Hello,

I am trying to develop an object with the module SDK but can't get the "Drag Connections" feature to work. My object has the FlexSimObject class as its superclass, I tried to override the getClassType method to return FlexSimObject::getClassType() but it still doesn't work.

Another solution that I tried was adding a classtype to the allobjects header file by the name of CLASSTYPE_OBJECT, by the value of 0x80000, and returned FlexSimObject::getClassType() | CLASSTYPE_OBJECT on the override getClassType method. This also didn't work.

I made it work by returning FlexSimObject::getClassType() | CLASSTYPE_FIXEDRESOURCE, but that's not what I want because my object should not be a fixed resource.

Could someone give me some advice?

Thank you.

FlexSim 20.0.2
module sdkdrag connectionsflexsimobject
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Phil BoBo avatar image
0 Likes"
Phil BoBo answered

Why is your object not a FixedResource? What are you trying to connect to or from your object?

What makes a FixedResource a FixedResource is the capacity to pass flowitems via connection ports, exactly what you seem to be trying to get your object to do.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Pedro Ortelani avatar image Pedro Ortelani commented ·

After some thinking I realized just what you said, I do need it to be a FixedResource.

I was trying to connect a source to my object, and my object needs to work with taskexecuter and flowitens, so it makes sense.

Thanks for the reply @phil.bobo

1 Like 1 ·