Posts: 4
Registered: ‎04-11-2007
Message 1 of 3 (131 Views)

problem with running samples 16 and 18

131 Views, 2 Replies
04-12-2007 04:31 PM
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
New Member
Michael Kurz
Posts: 1
Registered: ‎04-14-2007
Message 2 of 3 (131 Views)

Re: problem with running samples 16 and 18

04-14-2007 01:54 AM 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
Posts: 4
Registered: ‎04-11-2007
Message 3 of 3 (131 Views)

Re: problem with running samples 16 and 18

04-16-2007 11:11 AM in reply to: irene.rangel
Thank you Michael!! I followed your instructions and it runned with no problems.

Irene Rangel
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.