Utility Classes - A Start

Utility Classes - A Start

Anonymous
Not applicable
1,217 Views
25 Replies
Message 1 of 26

Utility Classes - A Start

Anonymous
Not applicable
I was thinking about a form I am currently designing for a dialog that will allow the user to label coordinates in Model Space. I was thinking in particular about some controls that could probably take advantage of common code wrapped into a GUIHelper class.

I wanted to ask if someone might share the following code with me, if it is available.

[1] I need to fill a ListBox with all of the layers that exist in a drawing. I was thinking we could create a method that accepts a ListBox as an argument and then fills it with the existing Layers. If someone can share with me their code for accessing a list of existing layers in a drawing I will write the rest of the method and stick it in the GUIHelper class.

[2] I'm not sure how convoluted the logic is to display the Layer Dialog Box. If involves more that one or two method calls I thought we could wrap this in another method of the GUIHelper class. This will allow the button to show the dialog with a single call like helper.showLayerDialog(). Can anyone share with me the code needed to open the LayerDialog?

[3] I'll need to come up with a dialog that allows the configuration of MText entities that are created by some of my tools. (For example, the text containing the coordinate values of a selected point for my current tool.) I was wondering if we could come up with a standard dialog box and supporting classes that can be used for this purpose. If I design the code for this will someone review it and comment?

P.S. - I have set up a spot in my SVN repository at the SurveyOS SourceForge Project for my AutoCAD .NET code. I will release it under the GPL. As soon as I have some time I will post a link to the Project website, the repository, and instructions on how to contribute. I welcome other developers that would like to collaborate and share code to contact me about placing a module on the SVN.

Scott Huey Message was edited by: Sunburned Surveyor
0 Likes
1,218 Views
25 Replies
Replies (25)
Message 21 of 26

Anonymous
Not applicable
Thanks for all the comments of support.

I really should have thought more carefully about my entrance to this forum, and my approach in try to set up an open source library for AutoCAD .NET code. I didn't realize that there is still some skepticism about the open source development model. It would have been better to start the library with a release of some of my own code.

I can't change the past. Instead I will be working to mend fences and build consensus as I move forward. I may have been a little short with Tony and some of the others in this thread, and for that I apologize. I look forward to learning and sharing from everyone on this forum in the coming months.

Scott Huey
0 Likes
Message 22 of 26

Anonymous
Not applicable
Scott,

No need to be apologetic. There's absolutely nothing wrong with ruffling the
feathers of the so called professionals.

Davis
0 Likes
Message 23 of 26

Anonymous
Not applicable
> Oh, and Owen, I don't think it should be an accepted initiation rite
> of any newsgroup that, as a newbie trying to learn, I should have
> to put up with Tony's sarcasm and condescending comments.

That would be nice, but no utopian vision is going to change the reality
on the ground. 🙂
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
0 Likes
Message 24 of 26

Anonymous
Not applicable
I will watch with interest and if I see anything that requires my skill level (knuckle dragger) I will likely jump in. In the past I have tried to start a collaborative effort on a VB project in another forum. It was surprising how little interest there was. Maybe times and attitudes have changed. I personally don't get the Open Source thing. It almost seems like a religion to those that promote it.

With regard to Tony.
I can't think of anyone I've learned more from here than Tony. He has never been rude with me but then I don't post much and I haven't poked him with a stick.
I have noticed that people that offer unsound programming advice seem to set him off.
I feel that this helps to set the bar a little higher for all of us. The best teacher, the one that pushes you to excel, is not necessarily the nicest one.
0 Likes
Message 25 of 26

Anonymous
Not applicable
Well said!
0 Likes
Message 26 of 26

Anonymous
Not applicable
Yup. I had some college professors like that.

If open source is a religion I guess you would call me a religious fanatic. :]

Scott
0 Likes