Community
Topobase (Read Only)
Welcome to Autodesk’s Topobase Forums. Share your knowledge, ask questions, and explore popular Topobase topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

problem with running samples 16 and 18

2 REPLIES 2
Reply
Message 1 of 3
irene.rangel
445 Views, 2 Replies

problem with running samples 16 and 18

hello! I am running the samples (VB :NET) and I found a problem with samples 16 and 18. I run with no error both of them, but when I follow the developer's guide, the samples don't work as specified. For example, in exercise 16, I click the created button and it doesn't add the list item in the listbox(also created).

I found that both samples inherit the class Topobase.Forms.DialogPlugIn. I've run the rest of the samples and they run with no problem.

I thank in advance for any comment.

Irene Rangel
2 REPLIES 2
Message 2 of 3
Michael Kurz
in reply to: irene.rangel

Hello Irene Rangel


You are right, the Documentation uses a Featureclass called MyPoint whikle the sample
uses a Featureclass called "GRENZPUNKT"


Open the VBSample16.tbp and check that the Value of the "Name" Attribute
is the Name of your FeatureClass for the used Dialog.


For the Sample where the FeatureClass MyPoint is used
it should be:

DialogPlugIn ClassName="MyPoint" Name="MyPoint"

instead of:

DialogPlugIn ClassName="MyPoint" Name="GRENZPUNKT"


If it's not the Soultion, debug the Sample and check this line:
MyButton1 = Me.Dialog.Controls.ApiItem("$MyButton1")
If MyButton1 is nothing double check the Name of the Control in the Form Designer
and check that it's really and APIControl (Classname property ApiControl in Formdesigner)


Also doublecheck that the VBSample16.tbp exists in the Bin directory.


In Sample VBSample18 the Name is already "MyPoint" and looks ok for me (fitting to the Documentation).
If you use it with an other FeatureClass than "MyPoint" just change the TBP File.


Hope this helps. If not let me know.

Best Regards
Michael Kurz
Message 3 of 3
irene.rangel
in reply to: irene.rangel

Thank you Michael!! I followed your instructions and it runned with no problems.

Regards
Irene Rangel

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

Post to forums  

Autodesk Design & Make Report