It is currently Thu, 02 Sep 2010 17:49:31 +0000

All times are UTC - 5 hours


And enter to win a 3DConnexion Space Naviagtor 3D Mouse




Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Center Point Rectangle Anyone?
PostPosted: Sun, 04 Jul 2010 20:01:56 +0000 
Offline
MCAD Addict
User avatar

Joined: 31 Mar 2006
Posts: 819
Country: United States
State: Florida
CAD System: Inventor
I have created an add-in that contains some rectangle drawing tools for the sketch environment inside Inventor. Here is a video demo of Qube-It Tools for Inventor-R1:



Here is a video demo of Qube-It Tools for Inventor-R2:



Here is the "Read Me" for R2:
Read Me - R2 wrote:
********************************
INVENTOR PRODUCTIVITY TOOLS
____________________________

Author:
QUBE-IT DESIGN, INC
Brian Hall
7/4/2010
********************************

DESCRIPTION
_______________

R1
This tool set is three distinct rectangle drawing tools that are used inside
the sketch environment for part files, assembly files, and drawing files. They are a
Center Point Rectangle, a Horizontal Mid-Point Rectangle, and a Vertical Mid-Point
Rectangle. The Horizontal and Vertical mid-point rectangles create a rectangle from
the mid-points of one of the horizontal or vertical lines of the rectangle. The
Center Point Rectangle creates a rectangle about the origin of where the user picks.
These tools are located on the sketch tab in the ribbon interface as a separate panel
called "Rectangles".

==============================

R2(Current)
This tool set has four distinct rectangle drawing tools that are used inside the sketch
environment for part files, assembly files, and drawing files. They are located on a
separate ribbon panel called "Rectangles" on the "Sketch" ribbon tab. They are as follows:

Center Point Rectangle (default displayed button):
This rectangle tool draws a rectangle about the origin of where the user picks. It
constrains the rectangle by adding a vertical and horizontal alignment constraint to
one of the vertical and horizontal lines respectively as well as a coincident constraint
to the geometry that the user selects. If no geometry is selected, then only the vertical
and horizontal alignment constraints will be used.
Diagonal Center Point Rectangle:
This rectangle tool draws a rectangle about the origin of where the user picks and adds
a diagonal line that goes from one corner to the opposite corner with a sketch point constrained
to the mid-point of the diagonal line. By virtue of the diagonal line, the rectangle relationship
to the origin is maintained, but if the user selects existing geometry then a coincident
constraint is added to the origin sketch point and selected geometry.
Horizontal Mid-Point Rectangle:
This rectangle tool draws a rectangle that eminates from the mid-point of one of the
horizontal lines of the rectangle. A sketch point is then added and constrained to
that line's mid-point. If the user selects existing geometry, then the sketch point
is constrained to the existing geometry accordingly.
Vertical Mid-Point Rectangle:
This rectangle tool draws a rectangle that eminates from the mid-point of one of the
vertical lines of the rectangle. A sketch point is then added and constrained to
that line's mid-point. If the user selects existing geometry, then the sketch point
is constrained to the existing geometry accordingly.


SOURCE CODE
_________________

C# source code will be provided with this add-in as a Visual Studio 2010 Solution when the
July/August issue of "The Creative Inventor" online magazine has been issued. To subscribe
to "The Creative Inventor" online magazine, please go to http://www.teknigroup.com/ and
click on the magazine icon button in the lower left corner.


SUPPORTED VERSIONS
______________________

This add-in supports Inventor 2010 forward and does not support the classic
interface.


INSTALLATION
________________

An installer wizard ("Qube-It Tools.msi") has been provided. Since this add-in was
built using .NET 3.5 framework, you will need that framework to run the add-in. The
installer will automatically detect this and install it if you don't have it. Follow
the prompts for quick installation. You can change the location of the install folder
if you like.

You may uninstall the add-in through your system's control panel. You may also simply
uncheck the "Load on Startup" box if you're only looking to unload it without uninstalling it.


KNOWN ISSUES
_________________

This add-in does not support the classic interface by design.

The default rectangle button shown on the Rectangles tab is the Center point Rectangle.
When the user selects one of the other rectangle tools, they will remain displayed
and "pressed" during the life of the tool, but when the user exits the tool or starts another
tool, the displayed button will go back to being the Center Point Rectangle tool again.
This is intentional because even if the other tools are displayed (i.e. horizontal or
vertical mid-point rectangle tools) and the user clicks that displayed button, the center point rectangle tool
will be what gets activated (unless the user selects the drop down first).

There is no support for the heads up display to be utilized with these tools. It is not
supported through the API yet.


BUG FIXES
__________________
R2 fixes:
1) Added support for the construction line toggle.
2) Added the Diagonal Center Point Rectangle tool to provide for a more robust
rectangle so that there are no unexpected results when the corners are filleted
or chamfered.
3) Changed the behavior of the tool so that it acts in a manner that is consistent with
the behavior of the current Inventor rectangle tools where the command stays
active until the user escapes out of the command or starts a new command.


RELEASE HISTORY
__________________

R1 7/4/2010
R2 (current release) 7/11/2010


FEEDBACK
________________

Post here at MCADForums.com

***************************************************************************************

QUBE-IT DESIGN PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
QUBE-IT DESIGN SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. QUBE-IT DESIGN, INC.
DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
UNINTERRUPTED OR ERROR FREE.


The source code is 1.4 MB in a compressed zip file so it's too large to upload here, but I would be happy to provide it if you PM me your e-mail address. I'm looking into another way to post it and will relay that info here when it becomes available.

Of course, feedback is always welcome.

***UPDATE****
I have been made aware of a problem installing this add-in on windows XP. I'm in the process of investigating the issue and providing an installer for XP. In the interim, you may manually register (and unregister) the add-in by use of a batch file. I will make a new post specific with those instructions.

****UPDATE 2*****
I have also found that this install package doesn't seem to work with Inventor 2010. It appears to be related to a reference to the Inventor 2011 Interop assembly that I made in my code. Of course, if you have Inventor 2010, you won't have this assembly on your machine, so I changed my reference to the 2010 Interop assembly and have rebuilt my original installer. I have replaced the installer attachment with the new version. Post back with any problems.

<<Attachment removed for simplicity purposes>>

****UPDATE 3****
As requested below, I have built an installer that doesn't force the user to install .NET 4.0. I have added this installer as an option for users to download. Both installers install the same exact tools for Inventor, it's just that the installer itself was built within a certain .NET framework. The first installer download was built inside the .NET 4.0 framework where the second installer was built inside the .NET 3.5 framework. If the user doesn't have the prescribed framework already installed on their machine, then the framework will automatically be installed.

<<Attachment removed for simplicity purposes>>

****UPDATE 4****
RELEASE 2:
Below is a new version of these tools (I know, only been out a week and already a new release :roll: ). I have added an additional center point rectangle button which uses a different technique for constraining as well as a couple of fixes/enhancements. Please view the video and Read Me (above) for further explanation.

You will first have to uninstall the R1 version for this version to install correctly (Thanks Matthias!)

Thank you to all who were patient with the installer issues above and who have provided feedback. It appears, with your feedback, that everything has been resolved. I'll let you be the judge, though. :)

I will be releasing the source code after the July/August issue of "The Creative Inventor" magazine has been issued. Be on the look out at http://teknigroup.com/. As always, feel free to post here with any feedback.

Attachment:
File comment: Qube-It Design Rectangle Tools AddIn Release 2.
Qube-It Design Tools for Inventor R2.zip [580.63 KiB]
Downloaded 525 times

_________________
Brian Hall
The phrase "If it ain't broke, don't fix it" is like saying, "If it's good enough, then it can't be any better".
Follow me on Twitter @QubeIt


Last edited by Qube-It on Wed, 14 Jul 2010 19:58:49 +0000, edited 8 times in total.

Share on Facebook Share on Twitter
Top
 Profile  
 
 Post subject: Re: Center Point Rectangle Anyone?
PostPosted: Tue, 06 Jul 2010 06:50:41 +0000 
Offline
Forum Admin
User avatar

Joined: 29 Jan 2004
Posts: 12349
Country: United States
State: Florida
CAD System: Inventor
Brian, I have upped the file attachment limit. You can now upload the source if you want.

BTW this is a great addin. Autodesk should have added this to the core code YEARS ago...

_________________
Sean Dotson, PE, AICE
RND Automation & Engineering
Free 30 day trial of iPropWiz 2009
Follow @seandotson & @mcadforums on Twitter


Top
 Profile  
 
 Post subject: Re: Center Point Rectangle Anyone?
PostPosted: Tue, 06 Jul 2010 06:58:24 +0000 
Offline
MCAD Expert
User avatar

Joined: 07 Jun 2005
Posts: 1961
Country: United States
State: Florida
CAD System: Inventor
Awesome Job Brian!

...and congrats on the Creative Inventor Magazine Newsletter and future Article set to release in August!

You may sign-up for the online magazine here http://teknigroup.com/

:beer:

_________________
Steve Robbins
Inventor Design Solutions & Innovations
"Improvise, Adapt, Overcome"
@_iDSi


Top
 Profile  
 
 Post subject: Re: Center Point Rectangle Anyone?
PostPosted: Tue, 06 Jul 2010 07:33:58 +0000 
Offline
MCAD Contributer

Joined: 19 Oct 2005
Posts: 101
GREAT JOB!!!! I'm happy now..almost.. Can you add the ability to add the dimensions during rectangle creation? (just like how 2011 rectangles/circles/lines are with the HUD for entering the dimensions)
If you add that then this will be the perfect add-in. Finally... Of course Autodesk will probably add this ability in 2012.. ;)


Top
 Profile  
 
 Post subject: Re: Center Point Rectangle Anyone?
PostPosted: Tue, 06 Jul 2010 07:38:42 +0000 
Offline
MCAD Addict
User avatar

Joined: 31 Mar 2006
Posts: 819
Country: United States
State: Florida
CAD System: Inventor
mcgyvr wrote:
Can you add the ability to add the dimensions during rectangle creation? (just like how 2011 rectangles/circles/lines are with the HUD for entering the dimensions)


Unfortunately, that functionality is not exposed in the API. I asked Autodesk about that and they said that it's definitely somthing they want to add to the API, so I'm hoping that it's in there for next year's release. Of course, like you said, they'll probably have this tool in there anyway next year. :)

_________________
Brian Hall
The phrase "If it ain't broke, don't fix it" is like saying, "If it's good enough, then it can't be any better".
Follow me on Twitter @QubeIt


Top
 Profile  
 
 Post subject: Re: Center Point Rectangle Anyone?
PostPosted: Tue, 06 Jul 2010 07:58:53 +0000 
Offline
MCAD Addict
User avatar

Joined: 31 Mar 2006
Posts: 819
Country: United States
State: Florida
CAD System: Inventor
Here's an installer that I built for XP machines. Since I don't have an XP machine I haven't tested it yet. Who wants to be the guinea pig?

****UPDATE****
Thanks to Tim and Steve I have found that the first installer doesn't work for Inventor 2010 because of the Autodesk.Inventor.Interop assembly I referenced in my code. I was referencing the one for Inventor 2011 which won't work for 2010. I have since changed that reference and built a new installer. The attachment *should* work. Next guinea pig?? :)

****UPDATE****
It appears I have fixed the installer issues for people with Inventor 2010. I have updated the original post above as well as the installer to reflect those fixes. I have confirmed that the new installer works but I'll be ready for anyone who has issues, just in case. I am removing the attached installer for this particular post so that there is only one place to download from to avoid any confusion.

_________________
Brian Hall
The phrase "If it ain't broke, don't fix it" is like saying, "If it's good enough, then it can't be any better".
Follow me on Twitter @QubeIt


Top
 Profile  
 
 Post subject: Re: Center Point Rectangle Anyone?
PostPosted: Wed, 07 Jul 2010 03:35:52 +0000 
Offline
MCAD Lurker

Joined: 21 Aug 2005
Posts: 18
Country: Germany
State: Non US/CAN Resident
CAD System: Inventor
Hello Brian,
thank you for creating this nice little tool for us. I just advertised it in the German Inventor user group and the feedback for your work was very good.

But there is one little thing that some of the users wanted to ask for:

Is it possible for you to compile the installer for using .NET 3.5?

According to what some of the programmers in our forum said you may not need the features of version 4.0 for the add-on so if you compile it for .NET V3.5 or even .NET V3.0 there will be no need for an additional download and installation of the .Net 4.0 framework. As I am no programmer I can only forward this question to you so please provide some feedback on this question.

BTW

We would love to translate the descriptions for you if you want to make it multilingual in your next version

cheers

Matthias

_________________
Nihil Ex Nihilo


Top
 Profile  
 
 Post subject: Re: Center Point Rectangle Anyone?
PostPosted: Wed, 07 Jul 2010 07:15:49 +0000 
Offline
MCAD Addict
User avatar

Joined: 31 Mar 2006
Posts: 819
Country: United States
State: Florida
CAD System: Inventor
Sure, no problem. My default project settings inside Visual Studio 2010 are for .NET 4.0. I'll change that, recompile the installer and update the original post. Thanks for the feedback. :)

_________________
Brian Hall
The phrase "If it ain't broke, don't fix it" is like saying, "If it's good enough, then it can't be any better".
Follow me on Twitter @QubeIt


Top
 Profile  
 
 Post subject: Re: Center Point Rectangle Anyone?
PostPosted: Wed, 07 Jul 2010 09:30:21 +0000 
Offline
MCAD Lurker

Joined: 21 Aug 2005
Posts: 18
Country: Germany
State: Non US/CAN Resident
CAD System: Inventor
Hi Brian,
thank you very much for providing the new installer with the "old" 3.5 Framework. I already posted the new link so your going to have some more traffic in the next few hours / days.

cheers

Matthias

_________________
Nihil Ex Nihilo


Top
 Profile  
 
 Post subject: Re: Center Point Rectangle Anyone?
PostPosted: Wed, 07 Jul 2010 09:32:27 +0000 
Offline
MCAD Addict
User avatar

Joined: 31 Mar 2006
Posts: 819
Country: United States
State: Florida
CAD System: Inventor
No problem. :)

_________________
Brian Hall
The phrase "If it ain't broke, don't fix it" is like saying, "If it's good enough, then it can't be any better".
Follow me on Twitter @QubeIt


Top
 Profile  
 
 Post subject: Re: Center Point Rectangle Anyone?
PostPosted: Thu, 08 Jul 2010 11:19:59 +0000 
Offline
MCAD Addict
User avatar

Joined: 31 Mar 2006
Posts: 819
Country: United States
State: Florida
CAD System: Inventor
Ok, Sean. Where did you get that video id for the YouTube video? I searched and searched, but came up short. :)

_________________
Brian Hall
The phrase "If it ain't broke, don't fix it" is like saying, "If it's good enough, then it can't be any better".
Follow me on Twitter @QubeIt


Top
 Profile  
 
 Post subject: Re: Center Point Rectangle Anyone?
PostPosted: Thu, 08 Jul 2010 11:53:09 +0000 
Offline
Forum Admin
User avatar

Joined: 29 Jan 2004
Posts: 12349
Country: United States
State: Florida
CAD System: Inventor
It's in the URL of the YT link. Everything after the =

_________________
Sean Dotson, PE, AICE
RND Automation & Engineering
Free 30 day trial of iPropWiz 2009
Follow @seandotson & @mcadforums on Twitter


Top
 Profile  
 
 Post subject: Re: Center Point Rectangle Anyone?
PostPosted: Mon, 12 Jul 2010 12:51:45 +0000 
Offline
MCAD Lurker

Joined: 02 Jun 2010
Posts: 14
Country: United States
State: NorthCarolina
CAD System: Inventor
Nice Add-in! This will save me some time for sure!

_________________
Nick Martin
@barnesmetal
http://www.barnesmetal.com
Flickr Photostream
http://www.flickr.com/photos/7550204@N03/


Top
 Profile  
 
 Post subject: Re: Center Point Rectangle Anyone?
PostPosted: Tue, 13 Jul 2010 11:28:29 +0000 
Offline
MCAD Lurker

Joined: 13 Jul 2010
Posts: 1
Country: United Kingdom
State: Non US/CAN Resident
CAD System: Inventor
Hi Brian, an excellent addition. :)

Any chance you can post the source code for this - I've been creating an addin suite of tools for future projects and would like to see someone else's implementation of an addin.

Cheers,

Alex.


Top
 Profile  
 
 Post subject: Re: Center Point Rectangle Anyone?
PostPosted: Tue, 13 Jul 2010 11:34:07 +0000 
Offline
MCAD Addict
User avatar

Joined: 31 Mar 2006
Posts: 819
Country: United States
State: Florida
CAD System: Inventor
Thanks Alex. I will be posting the source code when the July/August issue of "The Creative Inventor" magazine comes out. I'll have an article in there detailing the "process" of my add-in. Should be out by mid-August (I think). Here's a link to subscribe (it's free): http://teknigroup.com/

_________________
Brian Hall
The phrase "If it ain't broke, don't fix it" is like saying, "If it's good enough, then it can't be any better".
Follow me on Twitter @QubeIt


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group