Can you try this:
Option Strict Off
Imports System
Imports NXOpen
Imports NXOpen.UF
Module Togggle_ReadOnly
Sub Main()
Dim s As Session = Session.GetSession()
Dim ufs As UFSession = UFSession.GetUFSession()
Dim theUI As UI = UI.GetUI
Dim lw As...
Hello Cowski,
In the first post, I have added my Template File.
I do know the Attribute Type, it is of Type Number.
It is the only one, i have a this Type, all others are String, so no issues with those.
Can you help me to solve the Attribute issue for myAttributeTitle(10)
Any help, much...
Dear all,
I have, based on thread Link, adapted the Journal and added some more Attributes to fill-in or automatic filled in.
Only with the TextBox11.Text = workPart.GetStringAttribute(myAttributeTitle(10)) i have an issue.
In my NX file the Attribute is not a String Attribute, but of the Type...
Dear all,
I hope someone can get me on the right track with some expression unskillfulness...
I want to drive a sketch, this limited by 2 Expression Lists and pending on a type of material
First Input:
(String) Material="Copper"
(List) Material_Options={"Copper"; "Graphite"}
Second input –...
I would like to propose this.
add a line to the krx file of the parts that you always want to have cloned:
<RenameOption>Clone</RenameOption>
This forces to use clone in stead of reference.
more on this:
Link
Kind regards,
Pascal
Dear all,
Based on the Journal created by UGperson Link, i would like to do something similar.
But i have another folder structure and 2 different folder quantitys
With below journal, it is fully functional in case I have 4 Folders.
In Case I only have 3 folders, it is extracting the wrong...
Only for the Master Model approach.
Exact with that same question I got into a conflict with CARDS PLM.
They refused to give support on this, this was more becoming a situation where Consultancy of them was needed.
Anyway, a Master Model for the Single Parts is also a better approach anyway...
Hi Lars,
I have uploaded my Template, so you can see how I have done it.
Like I stated before,
File->Utilities->Attribute Templates
You create in the Part File Templates, all Attributes you need in the Title Block to be used.
This with a prefix DB_DWG_TEMPLATE_.....
All have to be of Data...
Hi Lars,
In the Template Files you need to create using the Attribute Templates utility all the Attributes with a prefix:
DB_DWG_TEMPLATE_
Then all the fields in the Title block have to be made with these Attributes
There is more to find on this on the NX Documentation:
Link
Hope this sets...
Hi Samuel,
If you do not longer want to have the SuppressedByExpression, you first have to delete this SBE.
If you want to keep the SBE, you have not the possibility to do this "manualy"
Menu-Edit-Feature-SuppressByExpression-
Change the Expression Option to Delete Shared of Delete for Each...
Hi MCU,
I was able to add your UDF to a Library.
It is as you describe.
Only when I change a default Expression, f.e. the locked Expression water_diameter, the UDF changes accordingly.
With the AttributeExpressions this does not happen. So the are not connected...
Currently I am working on a...