Automate to fill Custom Properties?
Automate to fill Custom Properties?
(OP)
Is it possible to fill automatically the Custom Properties such as “DrawnDate”(=current date short) and "DrawnBy" (=Login Name) in a NEW part/assembly/drawing
If they are already populated, then they should not change.
SWX2007SP2.1 x64
If they are already populated, then they should not change.
SWX2007SP2.1 x64






RE: Automate to fill Custom Properties?
Regards,
Scott Baugh, CSWP![[pc2] pc2](https://www.tipmaster.com/images/pc2.gif)
www.scottjbaugh.com
FAQ731-376
RE: Automate to fill Custom Properties?
Matt
CAD Engineer/ECN Analyst
Silicon Valley, CA
http://sw.fcsuper.com/index.php
RE: Automate to fill Custom Properties?
CODE
Today = CStr(Month(Now)) & "/" & CStr(Day(Now)) & "/" & Right(CStr(Year(Now)), 2)
Part.CustomInfo2("", "DrawnDate") = Today
http://www.EsoxRepublic.com-SolidWorks API VB programming help
RE: Automate to fill Custom Properties?
Is there a way of inserting the login name?
RE: Automate to fill Custom Properties?
RE: Automate to fill Custom Properties?
RE: Automate to fill Custom Properties?
Matt
CAD Engineer/ECN Analyst
Silicon Valley, CA
http://sw.fcsuper.com/index.php
RE: Automate to fill Custom Properties?
Dim myUserName as String
myUserName = environ("USERNAME")
RE: Automate to fill Custom Properties?
Is it possible to run these macros automatically when making new drawings?
RE: Automate to fill Custom Properties?
RE: Automate to fill Custom Properties?
Matt
CAD Engineer/ECN Analyst
Silicon Valley, CA
http://sw.fcsuper.com/index.php