question

Abhay Bajpai avatar image
0 Likes"
Abhay Bajpai asked Jason Lightfoot edited

Help: Error in Create Object

Getting error at "Create Object". And i don't know what else to do. I have tried everything. I have attached the model with it. Can someone help me understand why this error is being caused?


Champion Homes V1_1_autosave.fsm1686169444736.png

FlexSim 23.1.1
create object
· 2
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

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Jason Lightfoot edited

It looks like two example models have been combined 'incorrectly'.

In one of the models we had this station process to set up some maps for the stations:

1686171270199.png

An in another we had a map for the locations of parts on the station that we were using when a chassis arrived:

1686171360091.png

The way to combine these model is not to change the source type :

1686171546154.png

but to instead either have seperate initialization and part creation process flows, both of which the station would be a member - or put them in the same process flow.:

1686171806455.png


In your latest upload the expression for the part to create is incorrect. It was

  1. Model.find("Tools/FlowItemBin/"+current.partMap[creationRank]+"/1")

but we've now got model based part list so we need to find the array if parts using

  1. current.partMap.as(Map)[token.item.modelID]

But it looks like you didn't have a label for modelID on the chassis - I've added that.

There were many things that needed fixing - too many to list here. The main issues were:

  • mismatching cases (labels and also the partIDs and part table 'SideWall' vs 'Sidewall')
  • inconsistent label names
  • removal of "/1" from paths that needed it.
  • moved to version3.1 which doesn't like assigning an array to a Vec3 type (location and rotation)


Revised model attached.

champion-homes-v1-1_060723a_jl.fsm


· 12
5 |100000

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