AutoCAD Inventor :: Code Failure Setting Active Project Across A Network
May 9, 2011
I am trying to write code to set the active project across a network. In the code below I have hard written the address in to our main server named "Rusk" . It fails with an error message "The parameter is incorrect". I have tried this using a mapped drive as well with no luck.
I think it may be a permissions error, I am running Vista 64bit. Inventor version 12. If it is a permissions error, are there any sample code snippets out there I can use to set the permissions?
Public Sub SetActiveProject()
Dim ProjectID As String 'variable to hold Project ID
Dim ProjectAddress As String 'variable to hold an address path
'Verify the project ID is entered
If UserForm1.TextBox3.Value = "" Then
Where are the options to add objects & ActiveX objects to the VBA project? i can reference them but thats it... Have i got to do everything late binding or can i drag an object onto a form in design view?
So here's the situation: I have been importing parasolid files into Inventor. When doing so, a folder named "Imported Components" would pop up right next to the parasolid file, with individual Inventor part files of all the assembly parts in the parasolid file.
We have had this issue now for a couple years and don't know what is causing it. We are using vault pro with admin set single project file. A user can work for months using correct.ipj, then randomly at 10:42 they will notice the active project was been changed to some other temporary project location "c: emp.....". Then it will happen to different users at different times. I cant seem to find any correlation to anything. I can only imagine that it is somehow triggered from the vault addin.
I have a folder under libraries in my project setup where I plan to keep my library parts. Once there the parts are read only. my questions is should I not have them there. I cannot modify then if i need to and if I copy it out to change it they do not update in the library.
What is the best way about setting up libraries in my project setup?
Currently I m wokring on fairly large assembly of (as it feels to me) 14441 (Total Occurances in Active Document) and 1765 (Open Documents in Session). Its a complex Jump Form system for a sky scrapper.
Now as I went on with the assembly and saving all the parts, bolted connections and subassemblies in network drive - few of them were accidently saved in my local drive. I have setup a project files for this project and other projects and any one in my team changes the project file to open certain model assembly. So now when i open the assembly it goes fine but if someone else in my team opens that up they get errors of unresloved stuff. Now the things for which I need guidances are,
1. If I pack and go the whole assembly to remove the reslove errors - what will happen to my 100s of drawings (idw)?
2. Few of subassemblies had to undergo pack and go so that they can be changed to suit requirement at some other places after being renamed through design assistant. But now when i open my main assembly after setting up my prjecting file - it gives errors of multiple instances for the subassemblies obtained by performing "pack and go", in relation with the orginal sub assemblies.
3. What is the best technique for setting up project, main and subassemblies?
4. What steps I must need to follow performing pack and go? the destination folder can be a folder in project? if it is outside, how to grab it back in project (simple copy, paste)? After Pack and Go do I have to rename even the bolts before i bring the Pack and Go folder back to my project???
4. Can Autodesk Vault solve my problems? How difficult it is to setup and use Vault?
I encounter a problem that I do not understand. I created a little C# routine for Autocad Electrical (2011 and 2012) which adds some drawings to the current project with the following command:
(c:ace_add_dwg_to_project dwg2add paramlst)
This method works perfectly. With the parameter list you can set the Section, Sub-Section and Descriptions of the page properties, exactly what I want. When I start the routine, I check which project is active. If the wrong project is active, I activate the appropiate project with the following command:
(c:wd_makeproj_current wdpfnam)
So, when I want to add drawings to project A and project B is active at the start of the routine, I activate project A and the drawings are added. When I want to add drawings to project A and this project is already active, the drawings are not added to the project. The method mentioned above to add drawings returns nill, which means a failure.
Why is this happening? Is this a bug of Autocad?I already tried to always activate the project I want to add drawings to, but that doesn't matter.
When I enter my code to redeem my purchase, the adobe site says:
This code doesn't seem to be active. Please contact the retailer you purchased the card from, or use a different code. For more information contact Customer Support and order by phone.
I am having an issue when opening and saving files is very slow when I have a project active in the Project Navigator.
If I have an active project, and I open a file via Project Navigator or Windows Explorer, the process hangs for 15-20+ seconds at the 'Opening C:xxxxxxxxxxxxxxx.ac$' point, where it is creating the temporary file.
If I 'Close the current project' in the project browser and open the same file via Windows Explorer, the process takes less than a second.
How to set stakeout points on a pipe network? I have an alignment from the engineer that also has a pipe network associated with it that I would like to automatically set points vertically and horizontally on (like I can do with a regular alignment/profile).
What is the correct procedure to set up units in a project. I want to work with meters, ant the metric template is in milimeters. if I change the mm in m, when I make views the callouts are displayed incorrectly.
Would it be possible to have multiple people work in the same Maya scene simultaneously? I was thinking something along the lines of two people on separate computers working on a character for instance, one person modeling the head, the other working on the torso, etc; all of this being done in real time. Is there anything out there (Maya plugin or even some other program) that would allow this? I don't imagine this being very practical for a normal work environment, but it would be a fun way to collaborate and create something faster. Or more likely, it would cause you to hate your colleague all that much quicker.
I have just installed trial of VideoStudio Pro X4 and have owned the X2 version for some time already. Although I can always save a video file in HD format (1920x1180) I think it's best if the 'Project Settings' are already at this resolution. I was always able to set project resolution in version X2 but seems I can't in the new version X4. I think it's because I can only set the 'media type' to DVD in version X4. see attached picture. Is this because I only have trial version or is there less functionality in the new version?
Elsewhere in the forum I have a topic about sound echo, and a fix was to render a clip using the same project properties it was recorded with, at least regarding audio.
When I load X5, without a project or clip in the timeline - the project preference audio format is LPCM even tho the camcorder I use records dolby audio. I can open and edit the project preferences to change LPCM to dolby, and I can also check settings/enable 5.1 surround sound which does the same thing, but that setting won't survive an X5 program close. One would think that editing the properties like that and selecting OK at the end, the changes would have been saved and become the default. But when I next open X5, the project audio is again set LPCM.
As part of investigating the echo issue I uninstalled and re-installed X5 without any impact on the audio issues, which includes this one.
How can I set the project settings for audio so that the default is dolby and it lasts thru a close and the next X5 open?
I have a rule controlled .idw with several rules that call each other and various API macros with views and partslists that all have their own rules.
I want the drawing to close itself without saving the changes after it's done executing all of its code (the end product is written to an excel sheet). Everything works beautiful, and the drawing does close itself like it's supposed to, except for some strange reason it throws an error message when it closes. I've tried a few different methods of closing it. The code below is what I want to use. I've tried it with close set to false as well (saving changes). I've also tried calling an API macro that's pretty similar looking. They all have the same result. The rest of the code executes just fine, and no errors are thrown if I comment out the code letting the document stay open.
I've even tried making a brand new virgin part, writing a rule with just the below code and executing it. The only difference is the error window is thrown from Inventor instead of windows.
I'm trying to use the Video Studio X4 MPEG Optimizer. My problem is the Optimal project settings is grayed out. How do I get that option to work on my project. I am going through this book "Picture Yourself Making Creative Movies with Corel VideoStudio Pro X4". In Chapter 13 under Using the Mpeg Optimizer the instructions say to use that option. The project has been built in previous chapters as an ongoing project.
We were updating the wall finish schedule in our template. Now using the template, if we create a new room, it's number is 3. Where is the setting that controls what the next available room number is?
This is linked to me previous door query. We are working in a bit of a vacuum here and I am really interested to see how people set up their door families / types / instances for scheduling - as we are struggling to identify a 'best practice' approach.
At present we have set up a host family for the doorset that contains the opening and framing, with a nested doof leaf family in which is nested a door furniture family (and possibly vision panel face hosted family as well). It seems quite complicated, and in the current setup all the door / frame / leaf parameters are established in the door Type, and we have no Instance parameters other than Mark, level etc.
We are trying to set up a system where we will have Types for:
Main Door Assembly Type (dictates the frame type, overall fire and acoustic resistances) Door Leaf Type (Thickness dictated by the fire resitance set in the host) Door Furniture type (Door furniture set on the door leaf type)
We intend to have 'Door Furniture' nested in the 'Door Leaf' Nested in the overall 'Door Assembly'
There is another potential set of Types for the Door Frame / Architrave - which for the moment we have only as Profiles with their own parameters.
It does seem to be getting very complication, with lots of Types and I'm not sure whether that approach is worth the time in setting it up.
I was chatting to someone who says they deal with most of the parameters as instances within a handful of Door Types (1 Type for each main elevation appearance for a door, so 1 type may have instances of FD30, FD60, FD00, Veneer Finish, Laminated Finish etc.) This seems far simpler than our approach, but I'm not sure on the trade offs in flexibility.
I was hoping to set up a door family set that we could use from project to project that has quite a bit of flexibility. How do you arrange your doors / schedules in a typical project ?
The attached part has some bad work features on it, but I don't care about that (easy fix). It also contains a rule that simply changes the material from "P AND O" (pickles & oiled) to "201 S/S", for some reason the faulty work geometery causes this rule to throw an "unspecified error". If you delete the bad work geometry the rule runs fine.
failure to refresh Model Tree after switching configurations - app restart required
We have a user who is getting this message several times per day and must restart his PC. He is the only user of the Inventor Vault product using 2013. We have redone his laptop and and given him a clean laptop with a fresh install of AutoCAD.
see attached files. Have 40+ so far like this and can only seem to fix them by delinking derived sketches and then selecting sketch edit from design doctor and deleting geometry from unlinked old version of derived sketch presented. Have uninstalled SP1 and hope problem will not keep happening.
I would be interested to recover P15.ipt from its sick state. Have not had problem like this since I installed Inventor 2013 and lost a lot of work that could not be recovered until service pack was released.
I do not have vault installed and I am trying to add sub files to my project. As of now my project has to find many of my files and I do not want to copy and past them into my project folder as this will mess with my parts numbering system. I want only one part / assembly file per part. I assume that you can do this with the project dialog box or some other system tool I just can not seem to figure it out.
I've modelled part of a ship's deck, it consists of rather simple geometrich shapes(Plates, knee brackets and profiles).
However, when i model the assembly and do some negative extrusions in order to get the model how i want it, it leads to a face failure during mesh generation.
I have an Ipart I created and in some of the parts there is a swept feature. In other configurations it is suppressed.
The issue is that the 3D sketch for the sweep gets broken going to/from the configuration. The path is generated from an extruded cut that is also supressed.
I tried to recreate the sweep using a different sketch, but that wasn't successfull.
Is this a bug or is there a different aproach I can use?