Requesting some help with InField method. Whatever I try to read from the file with that method AS crushes with this message:
actually the problem is in the line that commented out:
though the field "HeighCheckBox" is added to AstorRules in table for my joint
Will appreciate any help
Requesting some help with InField method. Whatever I try to read from the file with that method AS crushes with this message:
actually the problem is in the line that commented out:
though the field "HeighCheckBox" is added to AstorRules in table for my joint
Will appreciate any help
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)
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)
Hi,
the type of Heigh(t)CheckBox is an integer per definition?
Which class does the infield method belong to?
Hi,
the type of Heigh(t)CheckBox is an integer per definition?
Which class does the infield method belong to?
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?
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?
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,
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,
Can't find what you're looking for? Ask the community or share your knowledge.