Fill out DWG Properties with variables

Fill out DWG Properties with variables

michael.milakovic
Participant Participant
226 Views
1 Reply
Message 1 of 2

Fill out DWG Properties with variables

michael.milakovic
Participant
Participant

Hi guys,

 

I wold like to fill out the DWG Properties of a file with System Variables from P&ID out of the same File.

 

I can fill out the DWG Properties with a text I enter, but i would like to match it with the variables I've got.

 

(setq si(vla-Get-SummaryInfo (vla-Get-ActiveDocument (vlax-Get-Acad-Object))))
(vla-SetCustomByKey si "PropertyName" %<\PnID DrawingProperties.Category.Propertyname>%)
(princ pval)

 

0 Likes
227 Views
1 Reply
Reply (1)
Message 2 of 2

john.uhden
Mentor
Mentor

@michael.milakovic ,

That methodology is unfamiliar to me.  I used to use DWGPROPS back in 2004, but I would have to look back and see how I did it.  I was the CAD Manager and I used it to see who touched a file when.  The method might not be the same at all.

But I would recommend your looking into vlax-get-ldata (sp?) and vlax-put-ldata (sp?) unless you need to see the properties via Windows Explorer (if that still works).

John F. Uhden

0 Likes