AutoCAD Inventor :: VBA - Read Projection From Style
Jun 5, 2013Is it possible to read the current setting for drawing projection (1st or 3rd angle) from the style library associated with the currently open drawing file (idw)?
View 2 RepliesIs it possible to read the current setting for drawing projection (1st or 3rd angle) from the style library associated with the currently open drawing file (idw)?
View 2 RepliesHow to do it?
I am using Inv/Vault Pro 2011.
Using Civil 3d 2012, I have a slope label with mult lines, and set to plan read.
When I rotate the label, the goes to plan read, but the bottom line text is on the top, top on the bottom.
I hope it would be simular to mirror.
I look at the expression, but didn't see any way to get the label angles.
I wish to display an Assembly as a Drawing.
However when the Base view is created it also displays surface geomerty created for referencing.
I attach a PDF which shows this.
Even though these are hidden in the respective Part files, they keep showing up in the Drawing and I cannot find a way to hide them. How to stop this from happening? BTW I am using Inventor 2013.
I made this part, which is a loft consisting of five symmetric squares. I plan on laser cutting each side, which would be exactly the same.
I can't seem to figure out how to make a flat projection of one of the sides. I have tried in sheet metal, but I don't use that feature in my line of work.
Just by selecting a bend line on the flat pattern, I'd like to draw only 2 lines on a sketch (without any border projection, only points) at both ends of the bend line.
I'm sure it can be done via VBA, but don't know how to start for it.
Is it possible to create projection views of a solid model part? I want to make a front, top and right side view of the part in solid model form all on the same part file. I thought I could copy the part in each view but "help" says I can't copy a solid model.
View 4 Replies View RelatedI'm having problems using the "Project Geometry" command when I'm editing a sketch on a part, and attempting to project geometry from an assembly on the part.
Now in this example, this is the structure of my parts:
Assembly 1
-Fabricated Part 1
-Assembly 2
--Fabricated Part 2
--Fabricated Part 3
(Assembly 1 and Assembly 2 do contain more parts than what is listed, I just simplified it so I don't have to type out the hundreds of parts used)
Now, I want to project Fabricated Part 1 onto Fabricated Part 2. I use the following steps to do this, starting out by working in Assembly 1:
Double click on Assembly 2Double Click on Fabricated Part 2Create sketch on Fabricated Part 2Use Project Geometry command to Project Fabricated Part 1 onto sketch of Fabricated Part 2
This is where the trouble starts. When I try to project Fabricated Part 1 onto Fabricated Part 2, it gives me an error message of:
"Cross-Part projection failed because the sketch is in a part which is adaptive in another assembly"
Fortunately this is about as intuitive of an error message as you can get, simply Fabricated Part 2 is already adaptive in another assembly, and when you use "Project Geometry" it automatically makes the part adaptive to the assembly you are projecting from, and you can't have two assemblies driving one part, so it gives me an error message.
Only problem is, this is a part I just made, that isn't used in any other designs, and isn't adaptive in Assembly 2. Nowhere does it say which assembly the part is already adaptive in (I know it must have that info stored somewhere, as it needs to know what is adaptive where, I just don't know how to get to it).
Now that Projecting Fabricated Part 1 in Assembly 1 to Fabricated Part 2 in Assembly 2 doesn't work, I tried to Project Fabricated Part 3 in Assembly 2 to Fabricated Part 2 in Assembly 2, which strangely does work.
Basically whenever I project geometry found in Assembly 1 onto Fabricated Part 2 it fails with the above error message. Whenever i project geometry found in Assembly 2 onto Fabricated Part 2, it works. Neither Fabricated Part 2, or Assembly 2 are adaptive.
Now I'm wondering if this is a workflow problem. This is how these parts were made:
Assembly 2 is similar to another assembly found elsewhere called Assembly 3, the only difference is that in Assembly 3, I need to change Fabricated Part 4 to a different part, all other parts remain the same.
Therefor I open Assembly 3, do a "Save as/Save Copy As" and save it as Assembly 2. Now I need to make my changes to Fabricated Part 4, so I open it, do a "Save as/save copy as" on it, and save it as Fabricated Part 2. In Assembly 2 I then do a Replace on Fabricated Part 4 and replace it with my new Fabricated Part 2. I now make the changes I need to make to Fabricated Part 2.
I started at this company a couple months ago, and that was the workflow explained to me, and it seemed to work. I wasn't aware of any damage it could cause, as I haven't used Inventor before, so I went along with it. Since that time I'm working to implement Vault, and my knowledge of Inventor has increased, and I've become aware of a program thats called Design Assistant. I'm thinking doing the "Save as/Save copy as" function is keeping some legacy information of my old part, making it think it is adaptive in another assembly, when really it isn't, it is the part that I did the save as from.
So two questions: is using Save as/Save copy as a valid way to quickly copy designs, or should all copying of designs be done with Design Assistant?
Also, Is there any way to view where this part thinks it is adaptive in? The trouble I see, is using Save As has been done for a very long time here, so the part I did the Save As from, could have been Saved As from another, then Saved As from another, etc. etc., and it would be almost impossible to track down (if that is what caused the problem).
how to change the projection to third angle projection for ALL of my drawings in Inventor 2010?
View 9 Replies View RelatedI've been trying in vain to change the projection type in my styles editor to 3rd angle and keeping it like that for all future drawings.
It's easy enough to change projection type for an individual drawing by going through Manage > Styles editor > View Preferences, but I'd like all drawings in future to default to 3rd angle. I've tried saving the file as a new template (many times) in Templates > Metric but they always default back to 1st angle projection.
I read that it's not possible to import a style (styxml file) into the style editor through the API, there is no dedicated command.
However I'm wondering if there's a a way to have the internal name corresponding to the button as we can do for the ribbon buttons (there's a sample code which does this).
So is it possible ot get the internal name of a button inside a dialog box (style editor here) or is it really hopeless to think I can import a style with a macro ?
By the way, that would be for Inventor 2009.
I am working with a template, that doesn't allow me to change the dimension style. In the project the Use Style Library is set to Read/Write. I have created my dimension style, at this point just a copy of the ANSI standard with a text size difference. I went to my template and set that syle as my default, and saved it. Now the fact that it doesn't automatically update the drawing I had alreadycreated is a nuisance, however if I creat a new drawing, the style has reverted to a different standard, that is not even the ANSI default. If I right click a dimension and change the dimstyle to what I saved it does update, but if I try to change the style again it defaults to a random dimstyle, AND changes the style even if I hit cancel. So... the question is how to make the changes stick?
View 1 Replies View RelatedI am wondering if it is possible to do a style update (or style update check) upon open of a drawing?
The example would be that I have stuff made from way back that the colors/dimension sytles ect dont match the current standard and upon opening a file where they are not current, it would either prompt to update immediatly OR update automatically with no prompting (preferred method).
I am doing a massive amount of updates from old files recently and to save myself 1 - 3 clicks per drawing would be wonderful.
I have a couple of SAT files exported by my colleague. He is only familiar with and only works in AutoCAD 2008.
All I'm trying to do is convert them to IGES for our customer, but I can't even open them. I get the message "Unable to Read SAT File" in Inventor. I tried Fusion as well, it just crashes out after working for a few seconds. When I try to open the original dwg in AutoCAD 2013 I get a message that the file is corrupted and to run recovery on it. I tried doing so, but then the dwg comes in with no model geometry.
How to open these files or any other workflow? We're going to have serious issues down the road if we can't move data between AutoCAD and Inventor.
I have some BOM parts and an assembly that are read only and I need to be able to enter information in the bill of materials under the status column and the comments column. The BOM parts are i-parts and the assembly is an i-assembly. Is there a way to set them to read or is this a limitation?
View 9 Replies View RelatedHow to read dimension value whether it have upper value and lower value
View 3 Replies View RelatedI am developing a web app ASP.NET MVC 3, which will read the properties files of Inventor (dwg, idw, ipt, iam). Read the properties of these files is by using objects Apprentice Server, which provides Autodesk Inventor View 2012. Connection objects is done through the library RxApprentice.tlb.
Code is shown below:
public ActionResult Index ()
{
try
[Code].....
While debugging applications on Web-server - IIS Express 7.5 development environment Visual Studio 2010 application runs without errors.
After publishing a Web application on IIS 7.0 the following error: "Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))».
A tried: change User Account Control Settings, and set permissions to configuration DCOM objects in Component Services - no results.
Is it possible to read the file properties Inventor of Web applications, and how to do it?
I have Inventor 2014 installed. My O/S is Windows 7 Ultimate 64 bit. The program has been working fine until recently. Now, I keep getting "cannot read texture image". I read all the solutions I found in the discussion group but, I cannot figure out how to resolve the problem with the solutions given. Should I uninstall and reinstall the program. All the files were opening as they should but then out of the blue I started getting this message for every file I tried to open.
View 2 Replies View Relatedhow could I read the last used settings for print (printer settings) and dwg export?
View 2 Replies View RelatedI've some user-defined iProperties in my idw-file. As soon as I set the file to "read-only" (via explorer RMB->properties) these iProperties are not shown on the drawing sheet when i open the drawing. ow to abandon this effect?
View 3 Replies View RelatedI search a way in a Csharp program to read iproperties without open file in appentrice because it's time consumption. When we right-click on the file in the windows explorer, the iproperties come instantly.
View 1 Replies View RelatedUsing Inventor 11...How do I change change the balloon (item 40) to read qty of 2? There are 4 total in the assembly, but this particular balloon only shows where 2 are, and another item 40 balloon will show where the other 2 are.
View 9 Replies View RelatedI have a problem in accessing the library features while doing cable and harness assembly. Whenever I click on the library option the error pops up by saying that " it has been edited by another user or marked as read only". I am not able to import a cable or wire with some modifications.
View 1 Replies View RelatedI am currently trying to retrieve data from a MS Access Database, we currently have iProperties with number values in them. An outside programmer created a code which takes these values and exports them to an MS Access Database, where they are then translated to mean something.
Instead of exporting those numbers, I want to use them to find what they ACTUALLY mean within the database and bring that information back into iLogic. (ie. 123456 actually means "1/4 Flat Bar Steel")
In short, I wish to access the MS Access database through iLogic in order to read information from it.
I have searched for the better part of 3 hours but have not found a good answer or example code of this situation. I am not that experienced in programming, but have worked with the API before for developing Automated Drawings and have an understanding how to navigate through. If there were to be some example code, I can begin to understand the process quite well through this method as well by seeing how to go about coding this.
I've created a main assembly containing several ipart components. With the following rule I can read the model parameters, but not the user parameters of the iparts:
A = Parameter("Part1:1", "d0")
If I create a component, insert it in the main assembly and make it an ipart afterwards, the user parameters can be read out with ilogic. But if I insert the same ipart again, the user parameters can not be read out anymore. Model parameters are no problem.
When I start a new document or open a file in Inventor, I get a pop up saying: "Cannot read texture image C:UseerspublicDocumentsAutodeskInventor 2011TexturesChrome.dds" I moved the whole Autodesk file and changed all paths under settings>files in Inventor. The new path to Chrome.dds is C:UsersKajDocumentsAutodeskInventor 2011TexturesChrome.dds
View 3 Replies View RelatedSome time ago i used express tools to save my sysvar settings and now when i read the old settings back in, i'm put in 3D parallel project mode. I know this because i have the background color for this mode set to something other than the background color for 2D model space. But now i can't get out of 3d parallel projection mode.
View 3 Replies View RelatedI just ran into a projection issue with a couple of AutoCAD files. There is a possibility that one of the files was originally in Microstation and in meters before it was converted to AutoCAD but I'm still trying to confirm this now. The problem that I am running into is that AutoCAD Map doesn't allow you to xref or attach other CAD files and use different projections. I have one file in Maryland State Plane, Feet and a second one which appears to be in Meters and I can't get them to overlay or for the file in meters to come in at the right location when it is xrefed.
View 7 Replies View RelatedHow could I read / change prompted entry through code from title block (for example DIN) within VB.Net?
View 3 Replies View RelatedAny way to modify a user form parameter's read only status using a rule?
I have a parameter that I want people to be able to edit when another parameter is set to true and to be locked if it's set to false. The only thing that comes to mind is have a rule that will just switch the value back automatically if the user changes it but it would be good if i could control the read only status.
I´m trying to access ComponentDefinition.ReferenceComponents.DerivedPartComponents using Apprentice Server but it tells me "Not implemented". Is there any other way to figure out whether a component is derived or not?
View 1 Replies View Related