Quantcast
Channel: Cadence Technology Forums
Viewing all articles
Browse latest Browse all 62706

Forum Post: RE: Need help , getting one TEXT Object and access properties (SETTERS /GETTERS )

$
0
0
YES !!! , this does help thank you so much . I scanned through the code and was intimidated like I knew I would be but I did gleam through one line I really REALLY cared about . set lState [$lDef SetText $lMyText] I started to cobble together a different script and I could not modify text block text and thats the piece I needed . Here the code . set lStatus [DboState] set lNullObj NULL set lObject [GetSelectedObjects] puts $lObject set lname [DboTclHelper_sMakeCString] set lValue [DboTclHelper_sMakeCString] set lPropsIter [$lObject NewDisplayPropsIter $lStatus] #get the first display property on the object set lDProp [$lPropsIter NextProp $lStatus] while {$lDProp != $lNullObj } { puts "went into while loop iu" #can not run $lDProp GetName $lname $lDProp GetValueString $lValue set strName [DboTclHelper_sGetConstCharPtr $lname] set strValue [DboTclHelper_sGetConstCharPtr $lValue] # puts $strName puts [format "%30s = %-30s" GetName $strName] puts [format "%30s = %-30s" GetValue $strValue] # AH HA MUAHAHAHAH makes all the text TEST set name [DboTclHelper_sMakeCString "test"] set lState [$lDProp SetValueString $name] set lDProp [$lPropsIter NextProp $lStatus] } delete_DboDisplayPropsIter $lPropsIter $lStatus -delete # note there is also a SETNAME !!!!!! , So in THANK you so much , this gives me a baseline so I can build from there .

Viewing all articles
Browse latest Browse all 62706

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>