Hi,
We often draw square profiles and other parts dimensions that isn't editable. On these profiles we want these dimensions to be, reference dimensions e.g. (50).
Is there a way to do this automatically?
Regards
Solved! Go to Solution.
Solved by dimamazutaMMJ32. Go to Solution.
Solved by dimamazutaMMJ32. Go to Solution.
Can you explain better what's your goal?
If you already create the dimensions, You can toggle any ordinary dimension into a reference dimension (and vice-versa)
Select them and click here:
If you are about to create the dimensions, You can turn on the button first and then create the dimensions, the dimensions will be all reference dimensions
Hi @madstrolle! Try do use this iLogic rule.
Dim oDoc As Document
oDoc = ThisApplication.ActiveDocument
Dim oDim As Inventor.GeneralDimension
Do
oDim = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kDrawingDimensionFilter, "Select Dimension")
If oDim Is Nothing
Exit Do
End If
Dim oDrawingDims As DrawingDimension
For Each oDrawingDims In oDoc.ActiveSheet.DrawingDimensions
oDim.Tolerance.SetToReference
Next
Loop While oDim IsNot Nothing
Some input information is required to automatically changed specific dimensions. I thought that it is most appropriate to choose the sizes that should be reference dimensions.
If You need to change all dimensions then try this rule
Dim oDoc As Document
oDoc = ThisApplication.ActiveDocument
Dim oDim As Inventor.GeneralDimension
Dim oDrawingDims As DrawingDimension
For Each oDrawingDims In oDoc.ActiveSheet.DrawingDimensions
oDrawingDims.Tolerance.SetToReference
Next
I will try it 🙂
But it would be great if it could be done on the actually part. So every time I place the part and call for the dimensions they are with (reference). I'm using ilogic to generate these hole profiles.
I hope it makes sence.
Please have a look at the standard Inventor command.
However, be careful, for this, the dimensions in the model must be reference, which can lead to accidental changes in these dimensions. A solution may be to impose a lock in the sketch's constrain. Then the dimensions will be references and the lines will not move anywhere. Please check the short video.
The error occurs because the sketch geometry is locked.
In this case, there is no way to distinguish the normal size from the reference dimensions. If you have two types of dimensions in your drawing, then:
- If most of the dimensions are referenced, use rule 2 and then manually change the necessary sizes to normal dimensions.
- If most dimensions are normal, then use rule 1 and select those dimensions that should be reference.
There is another way if you work with the templates of these profiles and you can add referenced dimensions to them. But these new additional dimensiones must be linked to another geometry.
Hi @dimamazutaMMJ32 ,
I'm using this rule all the time, it's working great😊
Would it be possible to change the code, so it also works for "Ordinate Set"?
Can't find what you're looking for? Ask the community or share your knowledge.