Thursday, 6 April 2017

Break all cross-part sketch projections

Short and sweet: How to Break Link on cross-part projections for all occurrences in an assembly.




I have mine disabled and I don't create cross-part references. that will slow inventor to a halt, especially on large assemblies.

When you change to Modeling View inside assembly you can select and delete more than one links at a time but only if they are part of the same sketch

Here is the ilogic code used to break adaptivity. Please run this code from an Assembly, internal or external rule

----------------------------------
Dim oAsmDoc As Document 
oAsmDoc = ThisApplication.ActiveDocument

If oAsmDoc.DocumentType <> kAssemblyDocumentObject Then
    MessageBox.Show("Run this rule from an assembly!", "iLogic")
    Return
End If

i=0

For Each oDoc As Document In oAsmDoc.AllReferencedDocuments
 Try 
  If oDoc.ModelingSettings.AdaptivelyUsedInAssembly = True Then
   oDoc.ModelingSettings.AdaptivelyUsedInAssembly = False
   i += 1
  End If
 Catch
 End Try
Next

MessageBox.Show("Turned off adaptivity for " & i & " documents!", "iLogic")
----------------------------------
Please see the screencast example here:
Thanks.
ADS


photo credit: Chatsy POP.H chain (license)

Monday, 3 April 2017

Drawing Resource Transfer Wizard 2017 - Incorrect Font

Short and sweet again. No time for prelude.



If you use Drawing Resource Transfer Wizard 2017 to update title blocks for multiple drawings, text fonts would be changed incorrectly.

It is a known issue in 2017 and on Release 3 Update 1 still not working. 

Release 4 is around the corner (April release) and I was told it's fixed but till then or if we have a regression and this bug returns here is an ilogic code to automate this.

The Knowledge Base Article recommends updating manually each drawing ....hmmm... we can do better:

-------------------------------------------
Dim oDestinationDocument As DrawingDocument
oDestinationDocument = ThisApplication.ActiveDocument

Dim oSourceDocument As DrawingDocument
oSourceDocument = ThisApplication.Documents.Open("D:\ADS\CAD\TEMPLATE.idw")
 
' Get the new source title block definition.
Dim oSourceTitleBlockDef As TitleBlockDefinition
 
oSourceTitleBlockDef = oSourceDocument.TitleBlockDefinitions.Item("TITLEBLOCK_NAME")
 
' Get the new title block definition.
Dim oNewTitleBlockDef As TitleBlockDefinition
oNewTitleBlockDef = oSourceTitleBlockDef.CopyTo(oDestinationDocument,True)'true to replace existing
 
' Iterate through the sheets, replace tibleblock with the one newly added.
Dim oSheet As Sheet
For Each oSheet In oDestinationDocument.Sheets
 oSheet.Activate
 
 oSheet.TitleBlock.Delete
 Call oSheet.AddTitleBlock(oNewTitleBlockDef)
Next
-------------------------------------------
Use code Injector from here:
to update multiple files at once. There is no point to run it from the assembly (not in my case) because not all files are part of the same assembly.
Later
ADS
photo credit: PeterThoeny Space and time warp (license)

Friday, 10 March 2017

Hide TP Work Features

Concentrated shot on TP Work Features:

Tube and Pipe Routes will create a lot of work points for routing and workp lanes for constraining the route.

Those work points are created above the route sketch but inside the route part.

The route has work points / work planes and a 3D sketch where you define your path.

You can turn then off from within the main assembly or when editing the route but if you deleted those route segments as you do when you change route path then those workpoints and worplanes will become orphaned and can't be turned off except for my method shown here.

This is particularly annoying when using zoom all because Inventor will include these work features in the zoom operation instead of zooming to existing geometry.

Google has big issues getting the right size pictures and videos to show up.

if the next video si poor quality, try my screencast here: http://autode.sk/2n4SULh

video

Later
Adrian

Wednesday, 8 March 2017

Workaholic

Hi,

My name is Adrian and I am a WORKAHOLIC.

.....
Now you should say:

Nice to meet you Adrian we are too...
......

I am busy to a ridiculous level, at the moment I wake up at 5AM and go to bed at 10PM or later and it’s pretty much all work and commuting.

+Paul Munford told me that’s why he got out of London but I am still stuck doing the commuting and I have to do it at weird times to keep it ~2 hours total for the day.

That leaves me not extra time, for you here, YouTube, Autodesk Forum, etc. which is not good and I will just have to adapt, adjust and reconsider my help.

From now on I will need to give you concentrated shots like espresso instead of the usual moka or pumpkin spiced skinny latte with marshmallows and whipped cream.

A short description, some screenshots and if I’m lucky, a video.

Later,

Adrian

Saturday, 7 January 2017

INVENTOR OPEN LIBRARY

I’ve been toying with the idea of an open library for a long time. I am of course referring to an open library of Inventor resources, parts, iparts, ifeatures, tube & pipe fittings, content center libraries, illogic routines and snippets, customization files, manuals, links, etc.

my type of place to be...

In other words anything Inventor related. There are a lot of websites out there where you can find cad files and resources and I’ve shared my preferred list before so why go through all the trouble and effort of doing this instead of using the already existing services?

                More than anything I am driven to share a library of parts authored as TP fittings ready to use in your projects.

                I feel that there are not enough T&P users out there to drive growth and force Autodesk to rethink its portfolio. A lot of people don’t use TP because of lacking resources like manuals, libraries etc.

                Not sure if you are aware but the new collections presented by Autodesk suck and I was better off with suites that we had before. Why? Because I had the Factory Design Suite which had AutoCAD P&ID, Inventor with routed systems, Plant 3D, etc..

                Now we either get Inventor (PRODUCT DESIGN COLLECTION), or we get AutoCAD P&ID and Plant 3D (ARCHITECTURE, ENGINEERING & CONSTRUCTION COLLECTION) but nothing in between.

                I bet there aren’t many companies are out there who manage to do plants without the need to create skids (inventor frame generator, FEA, etc.). Most of our plants are either containerized, skids, cabinets or enclosure type of installation.

                Everyone expects modular systems which they can rip and throw when they want instead of having a myriad number of pipe routes, fittings and equipment spawning over several rooms, floors, buildings.

                  With this in mind I wanted to see if we can find a solution and share the knowledge but it would do us no good if we don’t collectively share our files so my question to you is:

                Would you be willing to share your library of fittings? Other Inventor resources?

                I have sent my entire library out more than once and I’ve only asked that you use it at your own risk. Some might argue the benefits of this but I can tell you they pay off and I got lots of messages on fixing various errors which would have proven difficult to find otherwise.

                Second part of the problem is where, how to store and share this.

                I was thinking to use a single DropBox, Google Drive, Name Your Preferred Here, online storage systems and they would just be a list of folds with all the parts which you can download as a whole or partially.

                This however requires a business account (size wize) and while I can pay for this myself it needs to live outside me and outlive my personal carrier.

                Who knows, I might win the lottery and decide to do this for living but most likely I ... won’t and might need to change careers.

                I do suggest the download is available for those who make a small contribution, as small permitted, like 0.1 YourCurrency, just so that it’s still free but helps maintain it.

                If enough money are raised to sustain the storage then the excess would be used to hire someone and develop new libraries. We’ll do a pool and we vote for our most needed library, we find some students form a low cost labour part of the world and hire them to help us build it.

                We will also need a couple of administrators to oversee this and make sure the funds go to the right place, permissions are set, download links are working, etc..

                Have no idea if this will work, if I am asking too much, so I will end by asking you to please get in contact and give me your personal thoughts on the matter. What do you think will work, what won’t, are you willing to share your library, have some storage ideas, etc.


GET IN TOUCH,
ADS.
               



photo credit: loop_oh two doors (license)

Monday, 26 December 2016

Previous versions of software

Did you know you are entitled to get previous versions of software from Autodesk?
               
All the versions I need

                It’s a long shoot and most of us can’t want to jump on the latest and greatest so who would need to bloat up his drive with unneeded stuff?

                You all probably keep the old version around for 6 months after rolling up the new one but why would I install a previous version on purpose?

                My spare time job as help desk support engineer requires me to have all the version I can have really but would you?

                Just the other day I ran into this case where importing forerign cad data was not possible in 2017.3. It worked with one model at a time and it would popup the AnyCAD functionality rather than the good old translate import.

                I thought I could outsmart it and use the task scheduler but that failed to work and I keep getting errors no matter of the import procedure, reference vs conversion to inventor iam,ipt.

                That’s when previous version came in hand and I was able to use task scheduler from 2015 to automate the translation.

                It was only a small step to migrate them all to latest version with task scheduler of 2017.

                While I hope you never get the need to use a previous version here’s the info Autodesk has on the knowledge center.

                You can only access a version you had a license for and the number of copies must match whatever you had at the time when that previous version was current.

                It’s a bit more complicated really but that’s the general gist of it.

                In order to get a previous version license you need to login in to accounts.autodesk.com, or ask your account administrator to do it for you, expand the product you need and use the “Get Serial Number” link on that product. More info here

                Later,
                ADS,


photo credit: CGP Grey Lord of the Dice (license)

Friday, 23 December 2016

Fitting Alignment Issue

What’s wrong with these fittings?
 
Weird alignment

weird again.


My fitting orientation is all wrong.  You will get this especially on zero dead leg valves for pharmaceutical products but I’ve seen this on other products.

If you create a plane between the 3 connection points of the valve you will see that it’s not parallel with the rest of the geometry, valve body in my case.

default orientation

The direction is given by the 3’rd connection perpendicular to the line between the first and second. I think this is to help out with inexperienced users, idiot proof really, helping out if you didn’t align your connections to the model but that's just for straight fittings like tees.

Now what? Am I supposed to measure the angle every time and change fitting orientation on a continuous loop? (rolling eyes).

In order to fix this you need to add another authoring point and make it a 4 point connection.

4 Connections on a 3 point fitting? Are you mad?

I thought we already established that and we’re here to have some fun and solve some problems.

 We will be creating the 3rd connection inline (same plane) and parallel with the fitting as spare, never to be used and instead the 4th connection is to be used.

It might help to make the 3rd on a different plane away from 4th like right on the origin line just so it’s out of the way when placing or connecting fittings to it. We want to make it very obvious from the snap preview that it’s not the one to be used.

authoring dialog window

I have also gave it a really small connection size; a size we would never use like 1/8” to differentiate it even more and keep people from connecting to it.

And this is what the difference between placing a 3 or 4 connection fitting looks like
 
compare the results.
I’ve given this example before on autodesk forum on a similar issue.

You can keep just 3 connections if you align the third but we can do better.

3 would do but 4 is better


I feel it’s best to have a 4’th connection but be careful on placing fittings.

Watch out for ghost connection when placing this fitting. 

Later,
ADS