Problems with AddMemberSection command


Product(s):SACS
Version(s):ALL
Area:SACS API

Community Question:

Hello Bentley, I'm facing the next error using SACS Python API - SACS

I am trying to add member sections into the model via SACS Python API and I am getting the subject error when the id name contains special characters, like the hyphen symbol '-

Below code is OK.

s1 = model.AddMemberSection('ABCD123')

Below code gives the error:

s2 = model.AddMemberSection('XYZ-456')

Error.SACSException: (2684551169, 'SACS Error (2684551169) Invalid object id')

In Precede, special characters are allowed to be used when adding a section. Also, the plus and slash symbols are used in the section names in the Section Library, AISC-LRFD-3.1.

what does means this error?

Answer:

This is a little limitation using API python, using the API interface you only can use the more traditional 0-9 & A-Z alphanumeric definition instead of the expanded SACS definition which includes some special characters

below is presented a little summary of what kind of definition is supported by SACS API until this moment

Joint, Plate, Solid, and Shell names are restricted to alphanumeric characters. These will automatically generate a name if the supplied Id is empty.

Member, Solid and Shell Group names are restricted to alphanumeric characters.

Member cross-section names are restricted to alphanumeric characters.