Your Products have been synced, click here to refresh
How'd you that? I could probably help but by the time I type up my solution someone will have posted a better one hahaha! But I'll go ahead and try to help out someone who is constantly sharing their knowledge with others, Mr. dph51.
Post your code if you don't mind. I'll guide you/correct it if needed.
Sub Main() Dim PCDApp, PCDPartPrograms, PCDPartProgram, PCDCommands, PCDCommand Set PCDApp = CreateObject("PCDLRN.Application") Set PCDPARTPROGRAMS = PCDApp.PartPrograms Set PCDPartProgram = PCDApp.ActivePartProgram Set PCDCommands = PCDPartProgram.Commands Dim cmd As Object Dim fcntr As Integer Dim FeatureList$(99999) Dim TX, TY, TZ, NewTX, NewTY, NewTZ As Variant fcntr = 0 For Each cmd in PCDCommands If cmd.IsDCCFeature or cmd.IsMeasuredFeature Then FeatureList(fcntr) = cmd.id MSG = "feature ID = " & FeatureList(fcntr) TX = cmd.GetText(THEO_X, 0) TY = cmd.GetText(THEO_Y, 0) TZ = cmd.GetText(THEO_Z, 0) NewTX = TX & "+0" NewTY = TY & "+0" NewTZ = TZ & "+0" MSG = MSG & chr(10) & chr(10) & "XTheo = " &TX MSG = MSG & chr(10) & chr(10) & "YTheo = " &TY MSG = MSG & chr(10) & chr(10) & "ZTheo = " &TZ MSG = MSG & chr(10) & chr(10) & "NewXTheo = " &NewTX MSG = MSG & chr(10) & chr(10) & "NewYTheo = " &NewTY MSG = MSG & chr(10) & chr(10) & "NewZTheo = " &NewTZ MsgBox MSG End If Next cmd Set PCDApp = nothing Set PCDPartPrograms = nothing Set PCDPartProgram = nothing
How'd you that? I could probably help but by the time I type up my solution someone will have posted a better one hahaha! But I'll go ahead and try to help out someone who is constantly sharing their knowledge with others, Mr. dph51.
Post your code if you don't mind. I'll guide you/correct it if needed.
Sub Main() Dim PCDApp, PCDPartPrograms, PCDPartProgram, PCDCommands, PCDCommand Set PCDApp = CreateObject("PCDLRN.Application") Set PCDPARTPROGRAMS = PCDApp.PartPrograms Set PCDPartProgram = PCDApp.ActivePartProgram Set PCDCommands = PCDPartProgram.Commands Dim cmd As Object Dim fcntr As Integer Dim FeatureList$(99999) Dim TX, TY, TZ, NewTX, NewTY, NewTZ As Variant fcntr = 0 For Each cmd in PCDCommands If cmd.IsDCCFeature or cmd.IsMeasuredFeature Then FeatureList(fcntr) = cmd.id MSG = "feature ID = " & FeatureList(fcntr) TX = cmd.GetText(THEO_X, 0) TY = cmd.GetText(THEO_Y, 0) TZ = cmd.GetText(THEO_Z, 0) NewTX = TX & "+0" NewTY = TY & "+0" NewTZ = TZ & "+0" MSG = MSG & chr(10) & chr(10) & "XTheo = " &TX MSG = MSG & chr(10) & chr(10) & "YTheo = " &TY MSG = MSG & chr(10) & chr(10) & "ZTheo = " &TZ MSG = MSG & chr(10) & chr(10) & "NewXTheo = " &NewTX MSG = MSG & chr(10) & chr(10) & "NewYTheo = " &NewTY MSG = MSG & chr(10) & chr(10) & "NewZTheo = " &NewTZ MsgBox MSG End If Next cmd Set PCDApp = nothing Set PCDPartPrograms = nothing Set PCDPartProgram = nothing
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |