Topobase

Topobase

Reply
Member
irene.rangel
Posts: 4
Registered: ‎04-11-2007
Message 1 of 3 (136 Views)

problem with running samples 16 and 18

136 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 (136 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
Member
irene.rangel
Posts: 4
Registered: ‎04-11-2007
Message 3 of 3 (136 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.

Regards
Irene Rangel
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.