Help please with custom profile for BEAMS FS

owen_sparks
owen_sparks Member, Developers Posts: 2,660 PRO
Hi folks.

It would appear that I've failed miserably to add a profile to the excellent beams FS. 

Setting it up in accordance with @NeilCooke 's video seemed to go perfectly, but when I come to use it it throws an error of:-
"Attempt to dereference non-container undefined"



Thinking I might have made a mess of the profile I tried adding a plain rectangle but got the same error.  So there are two additions
"Aluminium Extrusion" : Aluminium_Extrusions,<br>"OwenS_Dummy_Profile" : OwenS_Dummy_Profile

Link to public doc:-
https://cad.onshape.com/documents/3f1a16f5cacc70630e643f57/w/e5390cdc2c45970848d7b2a2/e/e90199aeb1189e2b7485fb99

If anyone is free to have a poke about and tell me what I've done wrong I'd very much appreciate it.

Thanks,

Owen S

Business Systems and Configuration Controller
HWM-Water Ltd

Best Answers

  • kevin_o_toole_1
    kevin_o_toole_1 Onshape Employees, Developers, HDM Posts: 565 image
    Answer ✓
    The feature is looking for specific fields in the lookupTable by name. So where you have:
    &nbsp; &nbsp; &nbsp; &nbsp; "name" : "Extrusion",
    You should have:
    <div>&nbsp; &nbsp; &nbsp; &nbsp; "name" : "profile",</div><div></div>
    like the other tables. The display name (shown to users in the dialog) can still be whatever you want.

  • owen_sparks
    owen_sparks Member, Developers Posts: 2,660 PRO
    Answer ✓
    Hi @kevin_o_toole_1

    Thanks for showing me the error of my ways.

    What a complete and utter...

    ...I am.

    Thanks for your time,

    Owen S.
    Business Systems and Configuration Controller
    HWM-Water Ltd

Answers

  • kevin_o_toole_1
    kevin_o_toole_1 Onshape Employees, Developers, HDM Posts: 565 image
    Answer ✓
    The feature is looking for specific fields in the lookupTable by name. So where you have:
    &nbsp; &nbsp; &nbsp; &nbsp; "name" : "Extrusion",
    You should have:
    <div>&nbsp; &nbsp; &nbsp; &nbsp; "name" : "profile",</div><div></div>
    like the other tables. The display name (shown to users in the dialog) can still be whatever you want.

  • owen_sparks
    owen_sparks Member, Developers Posts: 2,660 PRO
    Answer ✓
    Hi @kevin_o_toole_1

    Thanks for showing me the error of my ways.

    What a complete and utter...

    ...I am.

    Thanks for your time,

    Owen S.
    Business Systems and Configuration Controller
    HWM-Water Ltd