Advance Steel Forum
Welcome to Autodesk’s Advance Steel Forums. Share your knowledge, ask questions, and explore popular Advance Steel topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AS API inField method problems

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
297 Views, 4 Replies

AS API inField method problems

Requesting some help with InField method. Whatever I try to read from the file with that method AS crushes with this message:

Снимок.PNG

 

actually the problem is in the line that commented out:

Снимок2.PNG

though the field "HeighCheckBox" is added to AstorRules in table for my joint

Снимок3.PNG

Will appreciate any help

 

Tags (1)
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

and what is more weird-looks like infield method  doesn't work at all (AstorBase table consists only 0, though it has to be filled with data)

Message 3 of 5
ChristianBlei
in reply to: Anonymous

Hi,

 

the type of Heigh(t)CheckBox is an integer per definition?

Which class does the infield method belong to?

 

 

Christian Blei
CBT Christian Blei Tools
christianblei.de
youtube.com/channel/UCxjA_NbeScQy9C0Z1xjwXpw
Message 4 of 5
Anonymous
in reply to: ChristianBlei

Hello


@ChristianBlei wrote:

the type of Heigh(t)CheckBox is an integer per definition?

Of course it should be a boolean, but I decided to make it an integer, especially iprofCheckBox works fine as an int.

 


Which class does the infield method belong to? 


inField is a standart method of  IRule interface which belongs to HRLJointClass in turn.

I use "old" api, with Irule interface, Query, Infield/OutField mothods etc (not the "modern" one integrated into autocad api with transactions) and now I doubt if that "old" api works in AS2017 at all, though "developers guide" describes it as a valid way to work even with AS2018 api. 

At the same time I can't understand why my code works (exept for writing data to the table and changing something in Infield method) if it's obsolete?

Message 5 of 5
ChristianBlei
in reply to: Anonymous

Hi,

 

my guess is that the name of your column is not HeighcheckBox. Maybe there is an additinal space at the end that you do not see in the table column name.

Also, do you ever write data to the table?

 

HTH,

 

 

Christian Blei
CBT Christian Blei Tools
christianblei.de
youtube.com/channel/UCxjA_NbeScQy9C0Z1xjwXpw

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report