Message 1 of 5
Setting iProperty fields "Creation Time" & "Date Checked&q
Not applicable
02-19-2003
05:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, has anyone run across this issue... I am trying to set the "Creation Time" and "Date Checked" property fields to be blank values?
The code below will not work, because it attempts to assign a text string to a date value, thus causing a type mismatch.
I tried doing a type conversion as follows:
oDwgProp.Value = CDate(sDwgPropAry(17)), but this still is not valid because you need a valid date format, and not a blank string.
From a "end-user" stand point, a check box will set date values to be blank.
Does anyone know if we can access this check box member via the API to set a blank date value? (or is there another method available?).
I forward a thanks!
-Kerwin
"non-working" code snippet:
For Each oStdDwgPropSet In oDwgPropSets
For Each oDwgProp In oStdDwgPropSet
Select Case oDwgProp.Name
Case "Creation Time"
oDwgProp.Value = sDwgPropAry(17)
Case "Date Checked"
oDwgProp.Value = sDwgPropAry(19)
End Select
Next oDwgProp
Next oStdDwgPropSet
The code below will not work, because it attempts to assign a text string to a date value, thus causing a type mismatch.
I tried doing a type conversion as follows:
oDwgProp.Value = CDate(sDwgPropAry(17)), but this still is not valid because you need a valid date format, and not a blank string.
From a "end-user" stand point, a check box will set date values to be blank.
Does anyone know if we can access this check box member via the API to set a blank date value? (or is there another method available?).
I forward a thanks!
-Kerwin
"non-working" code snippet:
For Each oStdDwgPropSet In oDwgPropSets
For Each oDwgProp In oStdDwgPropSet
Select Case oDwgProp.Name
Case "Creation Time"
oDwgProp.Value = sDwgPropAry(17)
Case "Date Checked"
oDwgProp.Value = sDwgPropAry(19)
End Select
Next oDwgProp
Next oStdDwgPropSet